import type { FieldArrayPath, FieldArrayStore, FieldPath, FieldStore, FieldValues, FormStore, Maybe, ResponseData, ValidationMode } from '../types'; /** * Value type of the validate otions. */ type ValidateOptions = { on: Exclude[]; shouldFocus?: Maybe; }; /** * Validates a field or field array only if required. * * @param form The form of the field or field array. * @param fieldOrFieldArray The store of the field or field array. * @param name The name of the field or field array. * @param options The validate options. */ export declare function validateIfRequired, TFieldArrayName extends FieldArrayPath>(form: FormStore, fieldOrFieldArray: FieldStore | FieldArrayStore, name: TFieldName | TFieldArrayName, { on: modes, shouldFocus }: ValidateOptions): void; export {};