/** * Client Event Buffer * * Per-client bounded event buffering for backpressure. * Wraps client.send() with a queue that buffers events when the * client is under write pressure. Overflow disconnects the client * or drops oldest events depending on configuration. */ import type { GatewayMessage } from "./transport-protocol.js"; import type { TransportClient } from "./transport.js"; export type OverflowStrategy = "drop-oldest" | "disconnect"; export declare class ClientEventBuffer { private client; private maxBuffer; private overflow; private queue; constructor(client: TransportClient, maxBuffer?: number, overflow?: OverflowStrategy); push(message: GatewayMessage): void; drain(): void; get pending(): number; clear(): void; } //# sourceMappingURL=client-event-buffer.d.ts.map