/** One frame read off a Server-Sent Events stream. */ export interface SseFrame { /** The `event:` field, when the frame carried one. */ name: string | undefined; /** The `id:` field, which on this API is the event's cursor. */ id: string | undefined; /** The joined `data:` lines, still unparsed. */ data: string; } /** * Reads Server-Sent Events out of a byte stream. * * Framing lives here rather than at the call site because the details are easy * to get subtly wrong: a line may end with a carriage return, a newline, or * both; a chunk may split a line ending in half; and comment frames — the * heartbeats that keep the connection alive through proxies — carry no data and * are dropped. */ export declare function readSseFrames(body: ReadableStream>): AsyncGenerator; //# sourceMappingURL=readSseFrames.d.ts.map