UNPKG

matrix-js-sdk

Version:
29 lines 1.14 kB
import { OlmMachine } from "@matrix-org/matrix-sdk-crypto-js"; import { IHttpOpts, MatrixHttpApi } from "../http-api"; /** * Common interface for all the request types returned by `OlmMachine.outgoingRequests`. */ export interface OutgoingRequest { readonly id: string | undefined; readonly type: number; } /** * OutgoingRequestManager: turns `OutgoingRequest`s from the rust sdk into HTTP requests * * We have one of these per `RustCrypto` (and hence per `MatrixClient`), not that it does anything terribly complicated. * It's responsible for: * * * holding the reference to the `MatrixHttpApi` * * turning `OutgoingRequest`s from the rust backend into HTTP requests, and sending them * * sending the results of such requests back to the rust backend. */ export declare class OutgoingRequestProcessor { private readonly olmMachine; private readonly http; constructor(olmMachine: OlmMachine, http: MatrixHttpApi<IHttpOpts & { onlyData: true; }>); makeOutgoingRequest(msg: OutgoingRequest): Promise<void>; private rawJsonRequest; } //# sourceMappingURL=OutgoingRequestProcessor.d.ts.map