import * as yup from "yup"; /** * Creates a Yup-based resolver for handleSubmit. * Maintains backward compatibility for existing Yup users. * * @template T - Form value type * @param {yup.ObjectSchema} schema - Yup validation schema * @param {boolean} [abortEarly=false] - Stop validation at first error * @returns {(values: T) => Partial>} Resolver function * * @example * // Using with handleSubmit * import { yupResolver } from "./validation"; * * handleSubmit( * form, * yupResolver(schema), * onSubmit * ); */ export declare function yupResolver>(schema: yup.ObjectSchema, abortEarly?: boolean): (values: T) => Partial>; /** * Generic validation helper (optional - for direct usage) * * @deprecated Prefer using resolver functions directly */ export declare function validateSchema>(resolver: (values: T) => Partial>, values: T): Partial>;