import { type ProtoPoisoning } from "./proto-guard.js"; import { type ResponseResult } from "./runtime-core.js"; import type { MaybePromise, RequestSource } from "./server.js"; type JsonResultContinuation = (result: unknown | ResponseResult) => T | Promise; type JsonErrorContinuation = (error: unknown) => T | Promise; /** Read a JSON source with the declared-length precheck, delivered-byte recheck, streaming cap, and * prototype-poisoning guard in one lane. */ export declare function readBoundedJsonSource(req: RequestSource, maxBytes: number, protoPoisoning?: ProtoPoisoning): Promise; export declare function readBoundedJsonSource(req: RequestSource, maxBytes: number, protoPoisoning: ProtoPoisoning, onResult: JsonResultContinuation, onError: JsonErrorContinuation): Promise; /** The shared content-type dispatcher around the JSON and urlencoded lanes. */ export declare function readBodyFramed(source: RequestSource, maxBodyBytes: number, protoPoisoning: ProtoPoisoning, onParsed: (parsed: unknown) => MaybePromise, wrapResponse: (response: Response | ResponseResult) => T, onError: (err: unknown) => MaybePromise): Promise; export {}; //# sourceMappingURL=body-lane.d.ts.map