import type { IncomingMessage, ServerResponse } from "node:http"; import type { OversizedBodyStrategy } from "./types.mts"; export declare class Request { private req; private res; private bodyPromise; private defaultLimit; private strictJsonContentType; private readonly oversizedBodyStrategy; constructor(req: IncomingMessage, res: ServerResponse, defaultLimit?: string | number | false, strictJsonContentType?: boolean, oversizedBodyStrategy?: OversizedBodyStrategy); is(type: string | string[]): string | false | null; buffer(limit?: string | number | false): Promise; json(limit?: string | number | false): Promise; }