Hhertz/node_modules/matrix-bot-sdk/lib/e2ee/RustEngine.d.ts
2025-07-31 23:47:20 +03:00

27 lines
870 B
TypeScript

import { OlmMachine } from "@matrix-org/matrix-sdk-crypto-nodejs";
import * as AsyncLock from "async-lock";
import { MatrixClient } from "../MatrixClient";
import { ICryptoRoomInformation } from "./ICryptoRoomInformation";
/**
* @internal
*/
export declare const SYNC_LOCK_NAME = "sync";
/**
* @internal
*/
export declare class RustEngine {
readonly machine: OlmMachine;
private client;
readonly lock: AsyncLock;
constructor(machine: OlmMachine, client: MatrixClient);
run(): Promise<void>;
private runOnly;
addTrackedUsers(userIds: string[]): Promise<void>;
prepareEncrypt(roomId: string, roomInfo: ICryptoRoomInformation): Promise<void>;
private processKeysClaimRequest;
private processKeysUploadRequest;
private processKeysQueryRequest;
private processToDeviceRequest;
private actuallyProcessToDeviceRequest;
}