From 633c92eae865e957121e08de634aeee11a8b3992 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Mon, 24 Apr 2023 14:03:36 +0200 Subject: Updated 18 files, added 1692 files and deleted includes/system/compare.inc (automated) --- .../lib/rendezvous/RendezvousChannel.d.ts | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 includes/external/matrix/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousChannel.d.ts (limited to 'includes/external/matrix/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousChannel.d.ts') diff --git a/includes/external/matrix/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousChannel.d.ts b/includes/external/matrix/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousChannel.d.ts new file mode 100644 index 0000000..b125779 --- /dev/null +++ b/includes/external/matrix/node_modules/matrix-js-sdk/lib/rendezvous/RendezvousChannel.d.ts @@ -0,0 +1,27 @@ +import { RendezvousCode, RendezvousIntent, RendezvousFailureReason } from "."; +export interface RendezvousChannel { + /** + * @returns the checksum/confirmation digits to be shown to the user + */ + connect(): Promise; + /** + * Send a payload via the channel. + * @param data - payload to send + */ + send(data: T): Promise; + /** + * Receive a payload from the channel. + * @returns the received payload + */ + receive(): Promise | undefined>; + /** + * Close the channel and clear up any resources. + */ + close(): Promise; + /** + * @returns a representation of the channel that can be encoded in a QR or similar + */ + generateCode(intent: RendezvousIntent): Promise; + cancel(reason: RendezvousFailureReason): Promise; +} +//# sourceMappingURL=RendezvousChannel.d.ts.map \ No newline at end of file -- cgit