/** * Decode a response body honoring the declared charset (Content-Type header, * then, for HTML or untyped bodies, a cheap sniff), falling * back to UTF-8. */ export declare function decodeBody(bytes: Buffer, contentTypeHeader: string): string; /** * Read a response body up to `maxBytes`, stopping once the cap is crossed. * `bytes` never exceeds the cap; `truncated` reports whether the body was cut * mid-stream. Returns `null` when the response carries no readable body. */ export declare function readBodyCapped(response: Response, maxBytes: number): Promise<{ bytes: Buffer; truncated: boolean; } | null>;