export declare const SSE_IDLE_MS = 120000; export interface SseEvent { readonly event: string | undefined; readonly data: string | undefined; readonly id: string | undefined; readonly retry: number | undefined; readonly raw: string; } export interface SseParser { readonly feed: (text: string) => void; readonly end: () => void; } export declare const createSseParser: (dispatch: (event: SseEvent) => void) => SseParser; export declare const parseSseText: (text: string) => SseEvent[]; export declare function sseEvents(body: ReadableStream, idleMs?: number): AsyncGenerator; export declare function sseFrames(body: ReadableStream, idleMs?: number): AsyncGenerator; export type SseJsonValue = string | number | boolean | null | readonly SseJsonValue[] | { readonly [key: string]: SseJsonValue; }; export declare const sseJson: (event: SseEvent) => SseJsonValue | undefined; export declare const sseData: (frame: string) => SseJsonValue | undefined; export declare const sseEventName: (frame: string) => string | undefined; //# sourceMappingURL=sse.d.ts.map