import type { IncomingMessage, ServerResponse } from 'node:http'; import type { ApiSimulator } from './types.js'; export type BodyParser = (raw: Buffer, contentType: string) => unknown | Promise; export interface NodeHandlerOptions { maxBodyBytes?: number; onError?: (error: unknown) => void; /** * Optional content-type → parser map. Keys are media types without parameters * (e.g. `application/json`). Built-in defaults cover JSON, urlencoded, and text. * For multipart, plug in your own parser (e.g. busboy) — not bundled. */ bodyParsers?: Record; } /** A small Node.js adapter. The simulator itself remains transport-agnostic. */ export declare const createNodeHttpHandler: (simulator: ApiSimulator, options?: NodeHandlerOptions) => (request: IncomingMessage, response: ServerResponse) => Promise; //# sourceMappingURL=node.d.ts.map