import type { ContactData, ContactErrorCode, ContactField } from '../types'; export type ValidationResult = { ok: true; data: ContactData; } | { ok: false; code: ContactErrorCode; }; /** * Validate + normalize a raw request body against the field schema. * * - Trims every value; lowercases emails. * - Enforces `required`, per-field `maxLength` (with type defaults), * email format, and that `select` values are one of the declared options. * - Returns a clean `ContactData` containing exactly the configured fields * (so nothing the client sends outside the schema is ever persisted/emailed). */ export declare function validateContact(fields: ReadonlyArray, body: Record): ValidationResult; //# sourceMappingURL=validate.d.ts.map