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