import type { SseFrame } from "./types.js"; /** * Transport-level overflow: the peer sent a line or frame past the cap. The * client's bounded backoff treats this like any transport failure — the * alternative is unbounded memory growth on a hostile or stuck peer (ren * review). */ export declare class SseOverflowError extends Error { constructor(message: string); } /** * Incremental text/event-stream parser. * * Consumes a byte stream (fetch response body) and yields parsed frames. * Handles the Cortex wire shape: `event:`/`id:`/`data:` frames, multi-line * data, and `: comment` keep-alives. LF-only splitting is deliberate (the * pi RPC framing gotcha: splitting on Unicode line separators corrupts JSON * payloads). Both the line buffer and per-frame data accumulation are capped * at 1 MiB — overflow raises {@link SseOverflowError}. */ export declare function parseSse(body: ReadableStream, signal?: AbortSignal): AsyncGenerator; //# sourceMappingURL=sse.d.ts.map