/** JSON control-plane payloads; media bytes use the direct-upload transport. */ export declare const MAX_JSON_BODY_BYTES: number; export declare class JsonBodyTooLargeError extends Error { constructor(); } /** Count actual bytes, including requests without a trustworthy Content-Length. * Structural parameter: DOM and Workers `Request` types both satisfy it. */ export declare function readJsonBody(request: { readonly body: ReadableStream | null; }): Promise; //# sourceMappingURL=readJsonBody.d.ts.map