export interface FormBodyLimits {
    maxFormFields: number;
    maxFormFieldNameLength: number;
    maxFormDepth: number;
    maxFormArrayIndex: number;
}
export declare const defaultFormBodyLimits: FormBodyLimits;
export declare class FormBodyBuilder {
    private readonly limits;
    private readonly root;
    private structureCount;
    constructor(limits: FormBodyLimits);
    add(name: string, value: unknown): void;
    addTopLevelFile(name: string, value: unknown): void;
    mergeObject(value: Record<string, unknown>): void;
    merge(builder: FormBodyBuilder): void;
    build(): Record<string, unknown>;
    private consumeStructure;
}
export declare function parseFormUrlEncodedBody(text: string, limits: FormBodyLimits): Record<string, unknown>;
export declare function assertTopLevelFormFieldName(name: string, limits: FormBodyLimits): void;
//# sourceMappingURL=form-body.d.ts.map