import { EventKind, EventPayload, RequestKind, RequestParams, RequestResult } from './protocol'; import { ChannelFactory } from './channel'; export declare class TransportClient { private readonly factory; private channel; private channelDisposers; private pending; private listeners; private destroyed; private nextId; /** Unique client ID — sent in the handshake, the server can log it * for debugging connection-flap. */ private readonly clientId; constructor(factory: ChannelFactory); /** Ensures a live channel exists. Lazy — brought up on the first request. * Right after connect it fire-and-forget sends a handshake — on mismatch * we log a warning but do not block further requests. */ private ensureChannel; private handleMessage; private handleDisconnect; request(kind: K, params: RequestParams, opts?: { signal?: AbortSignal; }): Promise>; on(kind: K, handler: (payload: EventPayload) => void): () => void; destroy(): void; } export declare class TransportDisconnectedError extends Error { readonly code = "transport_disconnected"; constructor(); } //# sourceMappingURL=transport-client.d.ts.map