import type { EventStreamFrame } from "./protocol/events.js"; /** The stream said something this client cannot read as the documented contract. */ export declare class EventStreamProtocolError extends Error { constructor(message: string); } /** * Turns the event stream's bytes into typed frames. * * The stream opens with a `hello` frame naming the position it continues from * and whether the requested cursor survived the journal window; after it, every * frame is one event, its SSE `id:` carrying the event's cursor and its * `event:` carrying the event's type. * * Nothing is validated beyond what the framing itself proves: this package has * no runtime dependencies, so a parsed envelope is trusted to be what the * specification says the daemon sends. */ export declare function readEventStream(body: ReadableStream>): AsyncGenerator; //# sourceMappingURL=readEventStream.d.ts.map