/** * Minimal SSE connector compatible with browser and Node fetch. * Parses Server-Sent Events (text/event-stream) into messages with data field. */ export interface SSEOptions { fetchImpl?: typeof fetch; signal?: AbortSignal; } export interface SSEMessage { event?: string; data?: string; id?: string; } export declare function connectSSE(url: string, opts?: SSEOptions): AsyncIterable & { close(): void; };