export type ServerEvent<T> = {
    data?: T | undefined;
    event?: string | undefined;
    id?: string | undefined;
    retry?: number | undefined;
};
export declare class EventStream<T extends ServerEvent<unknown>> extends ReadableStream<T> {
    constructor(stream: ReadableStream<Uint8Array>, parse: (x: ServerEvent<string>) => IteratorResult<T, undefined>);
    [Symbol.asyncIterator](): AsyncIterableIterator<T>;
}
//# sourceMappingURL=event-streams.d.ts.map