import type { z } from "zod"; type ValidationResponse = { success: true; data: T; } | { success: false; errors: Partial>; message: string; data: T; }; /** * Validates form data against a Zod schema. * * @param {FormData | Record | undefined} formData - The form data to validate. * @param {Schema} validationSchema - The Zod schema to validate the form data against. * @param {object} [options] - Optional configuration for validation. * @returns {Promise>>} - A promise that resolves to a validation response. * * @throws {Error} Throws an error if a valid Zod schema or valid FormData is not provided, * or if an unexpected error occurs during validation. */ export declare function validateForm(formData: FormData | Record | undefined, validationSchema: Schema, options?: { /** * The message to display when validation fails. * @default "Invalid data submitted" */ message?: string; }): Promise>>; export {};