export declare const NATIVE_MAX_SSE_FRAME_BYTES: number; /** Idle comment relayed between complete frames after upstream silence (spec ยง17 carry-forward). */ export declare const NATIVE_SSE_KEEPALIVE = ": keepalive\n\n"; export declare const NATIVE_SSE_KEEPALIVE_BYTES: Uint8Array; /** Default upstream silence before a keepalive comment (15 s, owner option a). */ export declare const NATIVE_SSE_KEEPALIVE_MS = 15000; export declare class NativeSseFrameOverflowError extends Error { constructor(message?: string); } export interface NativeSseFrame { readonly rawBytes: Uint8Array; readonly event?: string; readonly data?: string; readonly id?: string; readonly retry?: number; readonly comments: readonly string[]; } export declare const concatBytes: (parts: Uint8Array[]) => Uint8Array; export declare const parseSseFrameText: (rawBytes: Uint8Array) => { event?: string; data?: string; id?: string; retry?: number; comments: readonly string[]; }; export declare class NativeSseFramer { private readonly maxFrameBytes; private pendingSegments; private pendingBytes; private lineLength; private hasContent; private pendingCr; constructor(maxFrameBytes?: number); push(chunk: Uint8Array): NativeSseFrame[]; /** Yield each completed frame before inspecting later bytes in the transport chunk. */ frames(chunk: Uint8Array): Generator; finish(): NativeSseFrame[]; } export declare function parseNativeSseStream(source: AsyncIterable, maxFrameBytes?: number): AsyncGenerator; //# sourceMappingURL=native-sse.d.ts.map