import type { IResponseReader, ReadResponseBodyResult } from './IResponseReader.js'; /** * Reads fetch response bodies with user and hard size limits. */ export declare class ResponseReader implements IResponseReader { /** * Resolves the effective response size limit in megabytes. * * @param maxResponseSizeMb - User setting; 0 means no configurable limit. * @returns The user limit when positive, otherwise {@link HARD_MAX_RESPONSE_SIZE_MB}. */ resolveMaxResponseSizeMb(maxResponseSizeMb: number): number; /** * Reads a response body, enforcing a max size in megabytes. * * When {@link maxResponseSizeMb} is 0, the user-configurable limit is disabled but * {@link HARD_MAX_RESPONSE_SIZE_MB} still applies as a safety ceiling. * * @param response - Fetch response to read. * @param maxResponseSizeMb - Maximum body size in MB; 0 uses the hard cap only. */ read(response: Response, maxResponseSizeMb: number): Promise; } //# sourceMappingURL=ResponseReader.d.ts.map