UNPKG

391 BTypeScriptView Raw
1/// <reference types="node" resolution-mode="require"/>
2import type { IncomingMessage } from 'node:http';
3import { BodyParserFormConfig } from '../types.js';
4/**
5 * Parse x-www-form-urlencoded request body
6 */
7export declare function parseForm(req: IncomingMessage, options: Partial<BodyParserFormConfig>): Promise<{
8 parsed: {
9 [key: string]: unknown;
10 };
11 raw: string;
12}>;