/** * The SSE frames of one response body, decoded as JSON. * * A live view carries JSON in `data:` lines; keepalive comments and event * names never surface. Written here rather than taken from a library, so the * browser entry point keeps zero dependencies. */ /** * The part of a byte stream this reader uses. Stated structurally, so the DOM * and Bun definitions of `ReadableStream` both satisfy it without a cast. */ export type ByteStream = { getReader: () => { read: () => Promise<{ done: boolean; value?: Uint8Array; }>; cancel: () => Promise; }; }; export declare function parseSseFrames(body: ByteStream): AsyncGenerator; //# sourceMappingURL=sse.d.ts.map