import { ILogService } from "../../log/common/log.service.js"; /** Parses JSON using the caller's domain error for invalid syntax, without exposing response content. */ export declare function parseResponseJson(body: string, errorFactory: () => Error): T; /** Reads at most the byte budget, cancelling incomplete bodies without blocking caller deadlines. */ export declare function readBoundedResponse(response: Response, maximumBytes: number, signal: AbortSignal, logService?: ILogService): Promise<{ readonly bytes: Uint8Array; readonly truncated: boolean; }>; export declare function cancelResponseBody(body: { cancel(): Promise; }, logService?: ILogService): void;