import { IncomingMessage } from 'node:http';
/**
 * Default maximum request body size (10MB)
 */
export declare const DEFAULT_MAX_BODY_SIZE: number;
/**
 * Reads the full request body as a string
 * @param req - The HTTP request
 * @param maxSize - Maximum allowed body size in bytes (default: 10MB)
 * @returns Promise resolving to the complete body string
 * @throws Error if body exceeds maxSize
 */
export declare function readBody(req: IncomingMessage, maxSize?: number): Promise<string>;
/**
 * Reads and parses request body as JSON
 * @param req - The HTTP request
 * @param maxSize - Maximum allowed body size in bytes
 * @returns Promise resolving to the parsed JSON object
 */
export declare function readJsonBody<T = any>(req: IncomingMessage, maxSize?: number): Promise<T>;
//# sourceMappingURL=request.d.ts.map