import { RendezvousFailureListener, LegacyRendezvousFailureReason as RendezvousFailureReason, RendezvousTransport, RendezvousTransportDetails } from ".."; import { MatrixClient } from "../../matrix"; export interface MSC3886SimpleHttpRendezvousTransportDetails extends RendezvousTransportDetails { uri: string; } /** * Implementation of the unstable [MSC3886](https://github.com/matrix-org/matrix-spec-proposals/pull/3886) * simple HTTP rendezvous protocol. * Note that this is UNSTABLE and may have breaking changes without notice. * MSC3886/MSC3903/MSC3906 are now closed and so this functionality will be removed in future. * However, we want to keep this implementation around for some time. * TODO: define an end-of-life date for this implementation. */ export declare class MSC3886SimpleHttpRendezvousTransport implements RendezvousTransport { private uri?; private etag?; private expiresAt?; private client; private fallbackRzServer?; private fetchFn?; private cancelled; private _ready; onFailure?: RendezvousFailureListener; constructor({ onFailure, client, fallbackRzServer, fetchFn, }: { fetchFn?: typeof global.fetch; onFailure?: RendezvousFailureListener; client: MatrixClient; fallbackRzServer?: string; }); get ready(): boolean; details(): Promise; private fetch; private getPostEndpoint; send(data: T): Promise; receive(): Promise | undefined>; cancel(reason: RendezvousFailureReason): Promise; } //# sourceMappingURL=MSC3886SimpleHttpRendezvousTransport.d.ts.map