import { MatrixEvent } from "../models/event"; import { MatrixCall } from "./call"; import { MatrixClient } from "../client"; export declare enum CallEventHandlerEvent { Incoming = "Call.incoming" } export type CallEventHandlerEventHandlerMap = { /** * Fires whenever an incoming call arrives. * @param call - The incoming call. * @example * ``` * matrixClient.on("Call.incoming", function(call){ * call.answer(); // auto-answer * }); * ``` */ [CallEventHandlerEvent.Incoming]: (call: MatrixCall) => void; }; export declare class CallEventHandler { calls: Map; callEventBuffer: MatrixEvent[]; nextSeqByCall: Map; toDeviceEventBuffers: Map>; private client; private candidateEventsByCall; private eventBufferPromiseChain?; constructor(client: MatrixClient); start(): void; stop(): void; private onSync; private evaluateEventBuffer; private onRoomTimeline; private onToDeviceEvent; private handleCallEvent; } //# sourceMappingURL=callEventHandler.d.ts.map