import type { FieldValues, ResponseData, FormStore, Maybe, FieldPath, FieldArrayPath } from '../types'; /** * Value type of the validate options. */ export type ValidateOptions = Partial<{ shouldActive: boolean; shouldFocus: boolean; }>; /** * Validates the entire form. * * @param form The form to be validated. * @param options The validation options. * * @returns Whether the fields are valid. */ export declare function validate(form: FormStore, options?: Maybe): Promise; /** * Validates a single field or field array. * * @param form The form to be validated. * @param name The field or field array to be validated. * @param options The validation options. * * @returns Whether the fields are valid. */ export declare function validate(form: FormStore, name: FieldPath | FieldArrayPath, options?: Maybe): Promise; /** * Validates several fields and field arrays. * * @param form The form to be validated. * @param names The fields and field arrays to be validated. * @param options The validation options. * * @returns Whether the fields are valid. */ export declare function validate(form: FormStore, names: (FieldPath | FieldArrayPath)[], options?: Maybe): Promise;