/** * Bounded in-memory response consumption (Incremental Stream Bounding). * * Lives in `src/lib/` because it is shared by direct commands (`fetch`, * `archive`) and by provider clients under `src/providers/`, which sit behind * the provider boundary and cannot import from `src/commands/`. */ /** * Shared in-memory response ceiling for direct commands and provider clients. * Responses declaring or streaming beyond this ceiling reject immediately. */ export declare const MAX_BUFFERED_RESPONSE_BYTES: number; /** * Incrementally read from a ReadableStream up to maxBytes. * Throws ValidationError if incoming data exceeds maxBytes without buffering the remainder. */ export declare function readBoundedResponseBody(body: ReadableStream | null, maxBytes: number, label?: string): Promise; //# sourceMappingURL=bounded-body.d.ts.map