export type SseMessage = { data?: T | undefined; event?: string | undefined; id?: string | undefined; retry?: number | undefined; }; type ParseResult = { done: true; value?: undefined; batch?: undefined; } | { done: false; batch?: false; value?: T; } | { done: false; batch: true; value: T[]; }; export declare class EventStream extends ReadableStream implements AsyncDisposable { constructor(responseBody: ReadableStream, parse: (x: SseMessage) => ParseResult); [Symbol.asyncDispose](): Promise; [Symbol.asyncIterator](): AsyncIterableIterator; } export {}; //# sourceMappingURL=event-stream.d.ts.map