import type { BlitTransport, BlitTransportData, BlitTransportOptions, ConnectionStatus } from "../types"; export interface WebTransportTransportOptions extends BlitTransportOptions { /** * SHA-256 hash of the server's TLS certificate (hex string). * Required for self-signed certs (e.g. auto-generated gateway certs). */ serverCertificateHash?: string; } /** * BlitTransport implementation over WebTransport (QUIC/HTTP3). * * The protocol is length-prefixed binary frames on a single bidirectional * QUIC stream, with a 2-byte-length + passphrase auth handshake. */ export declare class WebTransportTransport implements BlitTransport { private wt; private writer; private _status; private reconnectTimer; private connectPromise; private currentDelay; private disposed; private messageListeners; private statusListeners; /** True when the server explicitly rejected the passphrase. */ authRejected: boolean; /** Last error message, if any. */ lastError: string | null; private readonly url; private readonly passphrase; private readonly _reconnect; private readonly initialDelay; private readonly maxDelay; private readonly backoff; private readonly connectTimeoutMs; private readonly certHash?; constructor(url: string, passphrase: string, options?: WebTransportTransportOptions); get status(): ConnectionStatus; send(data: Uint8Array): void; close(): void; suspend(): void; reconnect(): void; addEventListener(type: "message", listener: (data: BlitTransportData) => void): void; addEventListener(type: "statuschange", listener: (status: ConnectionStatus) => void): void; removeEventListener(type: "message", listener: (data: BlitTransportData) => void): void; removeEventListener(type: "statuschange", listener: (status: ConnectionStatus) => void): void; private setStatus; private clearReconnectTimer; private scheduleReconnect; private cleanup; connect(): void; private connectInternal; private readLoop; } //# sourceMappingURL=webtransport.d.ts.map