import { type ProjectServerClientMessage, type ProjectServerMessage } from './project-server-protocol.js'; import type { ClientState } from './project-server-types.js'; /** * Cap on outbound bytes queued for one client before it is dropped. This * server pushes index-activity updates to every client, and `socket.write()` * buffers without limit when its `false` return is ignored — so one client * that stops reading would otherwise grow the owner's heap indefinitely. The * index lives in SQLite; a dropped client re-queries on reconnect. */ export declare const MAX_CLIENT_WRITE_BUFFER_BYTES: number; export declare function sendServerMessage(state: ClientState, message: ProjectServerMessage): void; export declare function consumeClientChunk(state: ClientState, chunk: Buffer, onMessage: (state: ClientState, message: ProjectServerClientMessage) => void | Promise): void; //# sourceMappingURL=project-server-framing.d.ts.map