/** Default framework body limit: 1 MiB. */ export declare const DEFAULT_BODY_LIMIT = 1048576; /** * TransformStream that counts bytes and errors with PayloadTooLargeException * once `limit` is exceeded. Throwing inside transform() errors both sides: * the readable rejects the consumer (req.json()/req.text()/formData()), the * writable cancels the source stream. */ export declare function countingLimitStream(limit: number): TransformStream; /** * Re-wraps a Request whose body has no Content-Length (chunked) so its body * stream errors past `ceiling` bytes. CL-framed requests are returned as-is: * the runtime enforces Content-Length framing and the per-route check rejects * oversized declared lengths. Used by Miia.listen()'s Deno branch, where the * runtime has no native body size limit. */ export declare function applyBodyCeiling(req: Request, ceiling: number): Request; //# sourceMappingURL=body-limit.d.ts.map