/** * Matches replies to requests by id, for the control messages that hand * WebSocket ports across: each waiting request has a deadline, and all of a * peer's waiting requests can be failed at once when the peer is lost. */ export declare class PortRendezvous { private readonly _prefix; private readonly _waiting; private _counter; constructor(_prefix?: string); /** A fresh id for a request. */ newId(): string; get size(): number; /** Waits for the reply to `id`, failing after `timeoutMs`. */ wait(id: string, timeoutMs: number, describe?: string): Promise; /** Delivers the reply to `id`. `false` when nobody waits for it (it timed out). */ settle(id: string, value: T): boolean; fail(id: string, error: Error): void; failAll(error: Error): void; } //# sourceMappingURL=rendezvous.d.ts.map