import type { IncomingMessage } from 'node:http'; export type BoundedJsonBodyResult = { ok: true; value: unknown; } | { ok: false; status: 400 | 413; error: string; }; export interface ReadBoundedJsonBodyOptions { limitBytes: number; onBufferedBytes?: (bytes: number) => void; } export declare function readBoundedJsonBody(request: IncomingMessage, options: ReadBoundedJsonBodyOptions): Promise;