import type { Static, TObject } from "@sinclair/typebox"; import { type SchemaInfo } from "./schema-info.js"; /** * An interface to the HTTP request data, abstracting both FormData * and URLSearchParams. */ export type FieldData = { getAll: (FormData | URLSearchParams)["getAll"]; }; /** * Parses HTTP form data or query parameters into a JavaScript object that * conforms as closely as possible to a TypeBox schema. * @param fieldData The HTTP form data or query parameters. * @param schemaInfo Information about the schema used to parse the data. * @returns The parsed data, always taking the form of an object. */ export declare function parseFormFields(fieldData: FieldData, schemaInfo: SchemaInfo): Static; //# sourceMappingURL=parse-fields.d.ts.map