/** Base class for deterministic HTTP module body validation failures. */ export declare class HttpModuleBodyError extends Error { constructor(message: string, options?: ErrorOptions); } /** Raised when an HTTP module exceeds its caller-owned response limit. */ export declare class HttpModuleBodyTooLargeError extends HttpModuleBodyError { readonly maxBytes: number; constructor(maxBytes: number); } /** Raised when an HTTP module is not valid UTF-8 source text. */ export declare class HttpModuleBodyEncodingError extends HttpModuleBodyError { constructor(options?: ErrorOptions); } /** * Read one HTTP module response as strict UTF-8 without buffering more than * `maxBytes + 1`. The extra probe byte distinguishes an exact-limit body from * an oversized body while the shared prefix reader cancels unread data. */ export declare function readHttpModuleText(response: Response, maxBytes: number, abortSignal?: AbortSignal): Promise; //# sourceMappingURL=http-module-response.d.ts.map