import type { ILogItem } from "../../../logging/types"; import type { Account } from "../../e2ee/Account.js"; import type { DeviceTracker } from "../../e2ee/DeviceTracker.js"; import type * as OlmNamespace from "@matrix-org/olm"; import type { IChannel } from "./channel/Channel"; import type { HomeServerApi } from "../../net/HomeServerApi"; import type { Clock } from "../../../platform/web/dom/Clock.js"; import { EventEmitter } from "../../../utils/EventEmitter"; import { SASProgressEvents } from "./types"; import type { CrossSigning } from "../CrossSigning"; type Olm = typeof OlmNamespace; type Options = { olm: Olm; olmUtil: Olm.Utility; ourUserId: string; ourUserDeviceId: string; otherUserId: string; channel: IChannel; log: ILogItem; e2eeAccount: Account; deviceTracker: DeviceTracker; hsApi: HomeServerApi; clock: Clock; crossSigning: CrossSigning; }; export declare class SASVerification extends EventEmitter { private startStage; private olmSas; finished: boolean; readonly channel: IChannel; private timeout; constructor(options: Options); private setupCancelAfterTimeout; abort(): Promise; start(): Promise; } import Olm from "@matrix-org/olm/olm.js"; export declare function tests(): { "Order of stages created matches expected order when I sent request, they sent start": (assert: any) => Promise; "Order of stages created matches expected order when I sent request, I sent start": (assert: any) => Promise; "Order of stages created matches expected order when request is received": (assert: any) => Promise; "Order of stages created matches expected order when request is sent with start conflict (they win)": (assert: any) => Promise; "Order of stages created matches expected order when request is sent with start conflict (I win)": (assert: any) => Promise; "Order of stages created matches expected order when request is received with start conflict (they win)": (assert: any) => Promise; "Order of stages created matches expected order when request is received with start conflict (I win)": (assert: any) => Promise; "Order of stages created matches expected order when request is sent with start conflict (I win), same user": (assert: any) => Promise; "Order of stages created matches expected order when request is sent with start conflict (they win), same user": (assert: any) => Promise; "Verification is cancelled after 10 minutes": (assert: any) => Promise; "Verification is cancelled when there's no common hash algorithm": (assert: any) => Promise; }; export {};