/** Formats with record framing that can be displayed before the response finishes. */ type ResponseStreamFormat = 'text' | 'json-lines' | 'json-seq' | 'multipart'; /** Only opt recognized streaming media types into the reader path. */ export declare const getResponseStreamFormat: (contentType: string) => ResponseStreamFormat | undefined; /** A push parser keeps transport cancellation and UI updates outside the framing logic. */ export type ResponseStreamParser = { push: (chunk: Uint8Array) => void; finish: () => void; }; /** Decode complete records while retaining partial UTF-8 characters across network chunks. */ export declare const createResponseStreamParser: (contentType: string, emit: (text: string) => void) => ResponseStreamParser; export {}; //# sourceMappingURL=response-stream.d.ts.map