import type { RpcEvent } from "./rpc-types.ts"; export declare class RpcEventBuffer { private readonly updates; private timer; private readonly emit; constructor(emit: (event: RpcEvent) => void); /** * Coalescing keeps only the last event per key, so a type is coalescible * only when each event supersedes the previous one. `tool_execution_update` * qualifies: each carries the full `partialResult` so far, keyed per call. * * `message_update` does not. It carries an `assistantMessageEvent` delta, * and dropping a delta drops that text permanently, so it takes the * pass-through path below. */ enqueue(event: RpcEvent): void; flush(): void; dispose(): void; } //# sourceMappingURL=rpc-event-buffer.d.ts.map