## API Report File for "react-hook-form" > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/). ```ts import { JSXElementConstructor } from 'react'; import { default as React_2 } from 'react'; import { ReactElement } from 'react'; // @public (undocumented) export const appendErrors: (name: InternalFieldName, validateAllFieldCriteria: boolean, errors: InternalFieldErrors, type: string, message: ValidateResult) => {}; // Warning: (ae-forgotten-export) The symbol "ArrayPathInternal" needs to be exported by the entry point index.d.ts // // @public export type ArrayPath = T extends any ? ArrayPathInternal : never; // @public (undocumented) export type BatchFieldArrayUpdate = = FieldArrayPath>(name: InternalFieldName, updatedFieldArrayValues?: Partial>[], method?: T, args?: Partial<{ argA: unknown; argB: unknown; }>, shouldSetValue?: boolean, shouldUpdateFieldsAndErrors?: boolean) => void; // Warning: (ae-forgotten-export) The symbol "FileList_2" needs to be exported by the entry point index.d.ts // Warning: (ae-forgotten-export) The symbol "File_2" needs to be exported by the entry point index.d.ts // // @public (undocumented) export type BrowserNativeObject = Date | FileList_2 | File_2; // @public (undocumented) export type ChangeHandler = (event: { target: any; type?: any; }) => Promise; // @public (undocumented) export type Control = { _subjects: Subjects; _removeUnmounted: Noop; _names: Names; _state: { mount: boolean; action: boolean; watch: boolean; }; _reset: UseFormReset; _options: UseFormProps; _getDirty: GetIsDirty; _resetDefaultValues: Noop; _formState: FormState; _setValid: (shouldUpdateValid?: boolean) => void; _fields: FieldRefs; _formValues: FieldValues; _proxyFormState: ReadFormState; _defaultValues: Partial>; _getWatch: WatchInternal; _setFieldArray: BatchFieldArrayUpdate; _getFieldArray: (name: InternalFieldName) => Partial[]; _setErrors: (errors: FieldErrors) => void; _setDisabledField: (props: { disabled?: boolean; name: FieldName; }) => void; _runSchema: (names: InternalFieldName[]) => Promise<{ errors: FieldErrors; }>; _focusError: () => boolean | undefined; _disableForm: (disabled?: boolean) => void; _subscribe: FromSubscribe; register: UseFormRegister; handleSubmit: UseFormHandleSubmit; unregister: UseFormUnregister; getFieldState: UseFormGetFieldState; setError: UseFormSetError; }; // @public export const Controller: = FieldPath, TTransformedValues = TFieldValues>(props: ControllerProps) => ReactElement>; // @public (undocumented) export type ControllerFieldState = { invalid: boolean; isTouched: boolean; isDirty: boolean; isValidating: boolean; error?: FieldError; }; // @public export type ControllerProps = FieldPath, TTransformedValues = TFieldValues> = { render: ({ field, fieldState, formState, }: { field: ControllerRenderProps; fieldState: ControllerFieldState; formState: UseFormStateReturn; }) => React_2.ReactElement; } & UseControllerProps; // @public (undocumented) export type ControllerRenderProps = FieldPath> = { onChange: (...event: any[]) => void; onBlur: Noop; value: FieldPathValue; disabled?: boolean; name: TName; ref: RefCallBack; }; // @public (undocumented) export function createFormControl(props?: UseFormProps): Omit, 'formState'> & { formControl: Omit, 'formState'>; }; // @public (undocumented) export type CriteriaMode = 'firstError' | 'all'; // @public (undocumented) export type CustomElement = Partial & { name: FieldName; type?: string; value?: any; disabled?: boolean; checked?: boolean; options?: HTMLOptionsCollection; files?: FileList | null; focus?: Noop; }; // @public (undocumented) export type DeepMap = IsAny extends true ? any : T extends BrowserNativeObject | NestedValue ? TValue : T extends object ? { [K in keyof T]: DeepMap, TValue>; } : TValue; // @public (undocumented) export type DeepPartial = T extends BrowserNativeObject | NestedValue ? T : { [K in keyof T]?: ExtractObjects extends never ? T[K] : DeepPartial; }; // @public (undocumented) export type DeepPartialSkipArrayKey = T extends BrowserNativeObject | NestedValue ? T : T extends ReadonlyArray ? { [K in keyof T]: DeepPartialSkipArrayKey; } : { [K in keyof T]?: DeepPartialSkipArrayKey; }; // @public (undocumented) export type DeepRequired = T extends BrowserNativeObject | Blob ? T : { [K in keyof T]-?: NonNullable>; }; // Warning: (ae-forgotten-export) The symbol "AsyncDefaultValues" needs to be exported by the entry point index.d.ts // // @public (undocumented) export type DefaultValues = TFieldValues extends AsyncDefaultValues ? DeepPartial> : DeepPartial; // @public (undocumented) export type DelayCallback = (wait: number) => void; // @public (undocumented) export type EmptyObject = { [K in string | number]: never; }; // @public (undocumented) export type ErrorOption = { message?: Message; type?: LiteralUnion; types?: MultipleFieldErrors; }; // @public (undocumented) export type EventType = 'focus' | 'blur' | 'change' | 'changeText' | 'valueChange' | 'contentSizeChange' | 'endEditing' | 'keyPress' | 'submitEditing' | 'layout' | 'selectionChange' | 'longPress' | 'press' | 'pressIn' | 'pressOut' | 'momentumScrollBegin' | 'momentumScrollEnd' | 'scroll' | 'scrollBeginDrag' | 'scrollEndDrag' | 'load' | 'error' | 'progress' | 'custom'; // @public (undocumented) export type ExtractObjects = T extends infer U ? U extends object ? U : never : never; // @public (undocumented) export type Field = { _f: { ref: Ref; name: InternalFieldName; refs?: HTMLInputElement[]; mount?: boolean; } & RegisterOptions; }; // @public (undocumented) export type FieldArray = FieldArrayPath> = FieldArrayPathValue extends ReadonlyArray | null | undefined ? U : never; // @public export type FieldArrayMethodProps = { shouldFocus?: boolean; focusIndex?: number; focusName?: string; }; // @public export type FieldArrayPath = ArrayPath; // @public export type FieldArrayPathByValue = { [Key in FieldArrayPath]: FieldArrayPathValue extends TValue ? Key : never; }[FieldArrayPath]; // @public export type FieldArrayPathValue> = PathValue; // @public export type FieldArrayWithId = FieldArrayPath, TKeyName extends string = 'id'> = FieldArray & Record; // @public (undocumented) export type FieldElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement | CustomElement; // @public (undocumented) export type FieldError = { type: LiteralUnion; root?: FieldError; ref?: Ref; types?: MultipleFieldErrors; message?: Message; }; // @public (undocumented) export type FieldErrors = Partial ? any : FieldErrorsImpl>> & { root?: Record & GlobalError; }; // @public (undocumented) export type FieldErrorsImpl = { [K in keyof T]?: T[K] extends BrowserNativeObject | Blob ? FieldError : K extends 'root' | `root.${string}` ? GlobalError : T[K] extends object ? Merge> : FieldError; }; // @public (undocumented) export type FieldName = IsFlatObject extends true ? Extract : string; // @public (undocumented) export type FieldNamesMarkedBoolean = DeepMap, boolean>; // @public export type FieldPath = Path; // @public export type FieldPathByValue = { [Key in FieldPath]: FieldPathValue extends TValue ? Key : never; }[FieldPath]; // @public export type FieldPathValue> = PathValue; // @public export type FieldPathValues[] | readonly FieldPath[]> = {} & { [K in keyof TPath]: FieldPathValue>; }; // @public (undocumented) export type FieldRefs = Partial<{ [key: InternalFieldName]: Field | FieldRefs; }>; // @public (undocumented) export type FieldValue = TFieldValues[InternalFieldName]; // @public (undocumented) export type FieldValues = Record; // @public export function Form(props: FormProps): React_2.JSX.Element; // @public (undocumented) export type FormProps = Omit, 'onError' | 'onSubmit'> & Partial<{ control: Control; headers: Record; validateStatus: (status: number) => boolean; onError: ({ response, error, }: { response: Response; error?: undefined; } | { response?: undefined; error: unknown; }) => void; onSuccess: ({ response }: { response: Response; }) => void; onSubmit: FormSubmitHandler; method: 'post' | 'put' | 'delete'; children: React_2.ReactNode | React_2.ReactNode[]; render: (props: { submit: (e?: React_2.FormEvent) => void; }) => React_2.ReactNode | React_2.ReactNode[]; encType: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain' | 'application/json'; }>; // @public export const FormProvider: (props: FormProviderProps) => React_2.JSX.Element; // @public (undocumented) export type FormProviderProps = { children: React_2.ReactNode | React_2.ReactNode[]; } & UseFormReturn; // @public (undocumented) export type FormState = { isDirty: boolean; isLoading: boolean; isSubmitted: boolean; isSubmitSuccessful: boolean; isSubmitting: boolean; isValidating: boolean; isValid: boolean; disabled: boolean; submitCount: number; defaultValues?: undefined | Readonly>; dirtyFields: Partial>>; touchedFields: Partial>>; validatingFields: Partial>>; errors: FieldErrors; isReady: boolean; }; // @public (undocumented) export type FormStateProxy = { isDirty: boolean; isValidating: boolean; dirtyFields: FieldNamesMarkedBoolean; touchedFields: FieldNamesMarkedBoolean; validatingFields: FieldNamesMarkedBoolean; errors: boolean; isValid: boolean; }; // Warning: (ae-forgotten-export) The symbol "Subject" needs to be exported by the entry point index.d.ts // // @public (undocumented) export type FormStateSubjectRef = Subject> & { name?: InternalFieldName; values?: TFieldValues; type?: EventType; }>; // @public (undocumented) export type FormSubmitHandler = (payload: { data: TTransformedValues; event?: React_2.BaseSyntheticEvent; formData: FormData; formDataJson: string; method?: 'post' | 'put' | 'delete'; }) => unknown | Promise; // @public (undocumented) export type FromSubscribe = []>(payload: { name?: readonly [...TFieldNames] | TFieldNames[number]; formState?: Partial; callback: (data: Partial> & { values: TFieldValues; name?: InternalFieldName; }) => void; exact?: boolean; reRenderRoot?: boolean; }) => () => void; // @public (undocumented) export const get: (object: T, path?: string | null, defaultValue?: unknown) => any; // @public (undocumented) export type GetIsDirty = (name?: TName, data?: TData) => boolean; // @public (undocumented) export type GlobalError = Partial<{ type: string | number; message: Message; }>; // Warning: (ae-forgotten-export) The symbol "INPUT_VALIDATION_RULES" needs to be exported by the entry point index.d.ts // // @public (undocumented) export type InputValidationRules = typeof INPUT_VALIDATION_RULES; // @public (undocumented) export type InternalFieldErrors = Partial>; // @public (undocumented) export type InternalFieldName = string; // @public (undocumented) export type InternalNameSet = Set; // @public export type IsAny = 0 extends 1 & T ? true : false; // @public export type IsEqual = T1 extends T2 ? (() => G extends T1 ? 1 : 2) extends () => G extends T2 ? 1 : 2 ? true : false : false; // @public (undocumented) export type IsFlatObject = Extract, any[] | object> extends never ? true : false; // @public export type IsNever = [T] extends [never] ? true : false; // @public (undocumented) export type KeepStateOptions = Partial<{ keepDirtyValues: boolean; keepErrors: boolean; keepDirty: boolean; keepValues: boolean; keepDefaultValues: boolean; keepIsSubmitted: boolean; keepIsSubmitSuccessful: boolean; keepTouched: boolean; keepIsValidating: boolean; keepIsValid: boolean; keepSubmitCount: boolean; keepFieldsRef: boolean; }>; // @public (undocumented) export type LiteralUnion = T | (U & { _?: never; }); // @public (undocumented) export type MaxType = InputValidationRules['max'] | InputValidationRules['maxLength']; // @public (undocumented) export type Merge = { [K in keyof A | keyof B]?: K extends keyof A & keyof B ? [A[K], B[K]] extends [object, object] ? Merge : B[K] : K extends keyof A ? A[K] : K extends keyof B ? B[K] : never; }; // @public (undocumented) export type Message = string; // @public (undocumented) export type MinType = InputValidationRules['min'] | InputValidationRules['minLength']; // @public (undocumented) export type Mode = keyof ValidationMode; // @public (undocumented) export type MultipleFieldErrors = { [K in keyof RegisterOptions]?: ValidateResult; } & { [key: string]: ValidateResult; }; // @public (undocumented) export type Names = { mount: InternalNameSet; unMount: InternalNameSet; disabled: InternalNameSet; array: InternalNameSet; watch: InternalNameSet; focus?: InternalFieldName; watchAll?: boolean; }; // @public (undocumented) export type NativeFieldValue = string | number | boolean | null | undefined | unknown[]; // @public @deprecated (undocumented) export type NestedValue = { [$NestedValue]: never; } & TValue; // @public (undocumented) export type NonUndefined = T extends undefined ? never : T; // @public (undocumented) export type Noop = () => void; // Warning: (ae-forgotten-export) The symbol "PathInternal" needs to be exported by the entry point index.d.ts // // @public export type Path = T extends any ? PathInternal : never; // @public export type PathString = string; // Warning: (ae-forgotten-export) The symbol "PathValueImpl" needs to be exported by the entry point index.d.ts // // @public export type PathValue | ArrayPath> = PathValueImpl; // @public (undocumented) export type Primitive = null | undefined | string | number | boolean | symbol | bigint; // @public (undocumented) export type ReadFormState = { [K in keyof FormStateProxy]: boolean | 'all'; } & { values?: boolean; }; // @public (undocumented) export type Ref = FieldElement; // @public (undocumented) export type RefCallBack = (instance: any) => void; // @public (undocumented) export type RegisterOptions = FieldPath> = Partial<{ required: Message | ValidationRule; min: ValidationRule; max: ValidationRule; maxLength: ValidationRule; minLength: ValidationRule; validate: Validate, TFieldValues> | Record, TFieldValues>>; value: FieldPathValue; setValueAs: (value: any) => any; shouldUnregister?: boolean; onChange?: (event: any) => void; onBlur?: (event: any) => void; disabled: boolean; deps: FieldPath | FieldPath[]; }> & ({ pattern?: ValidationRule; valueAsNumber?: false; valueAsDate?: false; } | { pattern?: undefined; valueAsNumber?: false; valueAsDate?: true; } | { pattern?: undefined; valueAsNumber?: true; valueAsDate?: false; }); // @public (undocumented) export type ResetFieldConfig = FieldPath> = Partial<{ keepDirty: boolean; keepTouched: boolean; keepError: boolean; defaultValue: FieldPathValue; }>; // @public (undocumented) export type Resolver = (values: TFieldValues, context: TContext | undefined, options: ResolverOptions) => Promise> | ResolverResult; // @public (undocumented) export type ResolverError = { values: {}; errors: FieldErrors; }; // @public (undocumented) export interface ResolverOptions { // (undocumented) criteriaMode?: CriteriaMode; // (undocumented) fields: Record; // (undocumented) names?: FieldName[]; // (undocumented) shouldUseNativeValidation: boolean | undefined; } // @public (undocumented) export type ResolverResult = ResolverSuccess | ResolverError; // @public (undocumented) export type ResolverSuccess = { values: TTransformedValues; errors: {}; }; // @public (undocumented) export const set: (object: FieldValues, path: FieldPath, value?: unknown) => void; // @public (undocumented) export type SetFieldValue = FieldValue; // @public (undocumented) export type SetFocusOptions = Partial<{ shouldSelect: boolean; }>; // @public (undocumented) export type SetValueConfig = Partial<{ shouldValidate: boolean; shouldDirty: boolean; shouldTouch: boolean; }>; // @public (undocumented) export type Subjects = { array: Subject<{ name?: InternalFieldName; values?: FieldValues; }>; state: FormStateSubjectRef; }; // @public (undocumented) export type SubmitErrorHandler = (errors: FieldErrors, event?: React_2.BaseSyntheticEvent) => unknown | Promise; // @public (undocumented) export type SubmitHandler = (data: T, event?: React_2.BaseSyntheticEvent) => unknown | Promise; // @public (undocumented) export type TriggerConfig = Partial<{ shouldFocus: boolean; }>; // @public export function useController = FieldPath, TTransformedValues = TFieldValues>(props: UseControllerProps): UseControllerReturn; // @public (undocumented) export type UseControllerProps = FieldPath, TTransformedValues = TFieldValues> = { name: TName; rules?: Omit, 'valueAsNumber' | 'valueAsDate' | 'setValueAs' | 'disabled'>; shouldUnregister?: boolean; defaultValue?: FieldPathValue; control?: Control; disabled?: boolean; }; // @public (undocumented) export type UseControllerReturn = FieldPath> = { field: ControllerRenderProps; formState: UseFormStateReturn; fieldState: ControllerFieldState; }; // @public export function useFieldArray = FieldArrayPath, TKeyName extends string = 'id', TTransformedValues = TFieldValues>(props: UseFieldArrayProps): UseFieldArrayReturn; // @public export type UseFieldArrayAppend = FieldArrayPath> = (value: FieldArray | FieldArray[], options?: FieldArrayMethodProps) => void; // @public export type UseFieldArrayInsert = FieldArrayPath> = (index: number, value: FieldArray | FieldArray[], options?: FieldArrayMethodProps) => void; // @public export type UseFieldArrayMove = (indexA: number, indexB: number) => void; // @public export type UseFieldArrayPrepend = FieldArrayPath> = (value: FieldArray | FieldArray[], options?: FieldArrayMethodProps) => void; // @public (undocumented) export type UseFieldArrayProps = FieldArrayPath, TKeyName extends string = 'id', TTransformedValues = TFieldValues> = { name: TFieldArrayName; keyName?: TKeyName; control?: Control; rules?: { validate?: Validate[], TFieldValues> | Record[], TFieldValues>>; } & Pick, 'maxLength' | 'minLength' | 'required'>; shouldUnregister?: boolean; }; // @public export type UseFieldArrayRemove = (index?: number | number[]) => void; // @public export type UseFieldArrayReplace = FieldArrayPath> = (value: FieldArray | FieldArray[]) => void; // @public (undocumented) export type UseFieldArrayReturn = FieldArrayPath, TKeyName extends string = 'id'> = { swap: UseFieldArraySwap; move: UseFieldArrayMove; prepend: UseFieldArrayPrepend; append: UseFieldArrayAppend; remove: UseFieldArrayRemove; insert: UseFieldArrayInsert; update: UseFieldArrayUpdate; replace: UseFieldArrayReplace; fields: FieldArrayWithId[]; }; // @public export type UseFieldArraySwap = (indexA: number, indexB: number) => void; // @public export type UseFieldArrayUpdate = FieldArrayPath> = (index: number, value: FieldArray) => void; // @public export function useForm(props?: UseFormProps): UseFormReturn; // @public export type UseFormClearErrors = (name?: FieldPath | FieldPath[] | readonly FieldPath[] | `root.${string}` | 'root') => void; // @public export const useFormContext: () => UseFormReturn; // @public export type UseFormGetFieldState = >(name: TFieldName, formState?: FormState) => { invalid: boolean; isDirty: boolean; isTouched: boolean; isValidating: boolean; error?: FieldError; }; // @public (undocumented) export type UseFormGetValues = { (): TFieldValues; >(name: TFieldName): FieldPathValue; []>(names: readonly [...TFieldNames]): [...FieldPathValues]; }; // @public export type UseFormHandleSubmit = (onValid: SubmitHandler, onInvalid?: SubmitErrorHandler) => (e?: React_2.BaseSyntheticEvent) => Promise; // @public (undocumented) export type UseFormProps = Partial<{ mode: Mode; disabled: boolean; reValidateMode: Exclude; defaultValues: DefaultValues | AsyncDefaultValues; values: TFieldValues; errors: FieldErrors; resetOptions: Parameters>[1]; resolver: Resolver; context: TContext; shouldFocusError: boolean; shouldUnregister: boolean; shouldUseNativeValidation: boolean; progressive: boolean; criteriaMode: CriteriaMode; delayError: number; formControl?: Omit, 'formState'>; }>; // @public export type UseFormRegister = = FieldPath>(name: TFieldName, options?: RegisterOptions) => UseFormRegisterReturn; // @public (undocumented) export type UseFormRegisterReturn = { onChange: ChangeHandler; onBlur: ChangeHandler; ref: RefCallBack; name: TFieldName; min?: string | number; max?: string | number; maxLength?: number; minLength?: number; pattern?: string; required?: boolean; disabled?: boolean; }; // Warning: (ae-forgotten-export) The symbol "ResetAction" needs to be exported by the entry point index.d.ts // // @public export type UseFormReset = (values?: DefaultValues | TFieldValues | ResetAction, keepStateOptions?: KeepStateOptions) => void; // @public export type UseFormResetField = = FieldPath>(name: TFieldName, options?: ResetFieldConfig) => void; // @public (undocumented) export type UseFormReturn = { watch: UseFormWatch; getValues: UseFormGetValues; getFieldState: UseFormGetFieldState; setError: UseFormSetError; clearErrors: UseFormClearErrors; setValue: UseFormSetValue; trigger: UseFormTrigger; formState: FormState; resetField: UseFormResetField; reset: UseFormReset; handleSubmit: UseFormHandleSubmit; unregister: UseFormUnregister; control: Control; register: UseFormRegister; setFocus: UseFormSetFocus; subscribe: UseFormSubscribe; }; // @public export type UseFormSetError = (name: FieldPath | `root.${string}` | 'root', error: ErrorOption, options?: { shouldFocus: boolean; }) => void; // @public export type UseFormSetFocus = = FieldPath>(name: TFieldName, options?: SetFocusOptions) => void; // @public export type UseFormSetValue = = FieldPath>(name: TFieldName, value: FieldPathValue, options?: SetValueConfig) => void; // @public export function useFormState(props?: UseFormStateProps): UseFormStateReturn; // @public (undocumented) export type UseFormStateProps = Partial<{ control?: Control; disabled?: boolean; name?: FieldPath | FieldPath[] | readonly FieldPath[]; exact?: boolean; }>; // @public (undocumented) export type UseFormStateReturn = FormState; // @public export type UseFormSubscribe = []>(payload: { name?: readonly [...TFieldNames] | TFieldNames[number]; formState?: Partial; callback: (data: Partial> & { values: TFieldValues; name?: InternalFieldName; type?: EventType; }) => void; exact?: boolean; }) => () => void; // @public export type UseFormTrigger = (name?: FieldPath | FieldPath[] | readonly FieldPath[], options?: TriggerConfig) => Promise; // @public export type UseFormUnregister = (name?: FieldPath | FieldPath[] | readonly FieldPath[], options?: Omit & { keepValue?: boolean; keepDefaultValue?: boolean; keepError?: boolean; }) => void; // @public (undocumented) export type UseFormWatch = { (): TFieldValues; []>(names: readonly [...TFieldNames], defaultValue?: DeepPartial): FieldPathValues; >(name: TFieldName, defaultValue?: FieldPathValue): FieldPathValue; (callback: WatchObserver, defaultValues?: DeepPartial): Subscription; }; // @public export function useWatch(props: { name?: undefined; defaultValue?: DeepPartialSkipArrayKey; control?: Control; disabled?: boolean; exact?: boolean; compute?: undefined; }): DeepPartialSkipArrayKey; // @public export function useWatch = FieldPath, TTransformedValues = TFieldValues>(props: { name: TFieldName; defaultValue?: FieldPathValue; control?: Control; disabled?: boolean; exact?: boolean; compute?: undefined; }): FieldPathValue; // @public export function useWatch(props: { name?: undefined; defaultValue?: DeepPartialSkipArrayKey; control?: Control; disabled?: boolean; exact?: boolean; compute: (formValues: TFieldValues) => TComputeValue; }): TComputeValue; // @public export function useWatch = FieldPath, TTransformedValues = TFieldValues, TComputeValue = unknown>(props: { name: TFieldName; defaultValue?: FieldPathValue; control?: Control; disabled?: boolean; exact?: boolean; compute: (fieldValue: FieldPathValue) => TComputeValue; }): TComputeValue; // @public export function useWatch[] = readonly FieldPath[], TTransformedValues = TFieldValues>(props: { name: readonly [...TFieldNames]; defaultValue?: DeepPartialSkipArrayKey; control?: Control; disabled?: boolean; exact?: boolean; compute?: undefined; }): FieldPathValues; // @public export function useWatch[] = readonly FieldPath[], TTransformedValues = TFieldValues, TComputeValue = unknown>(props: { name: readonly [...TFieldNames]; defaultValue?: DeepPartialSkipArrayKey; control?: Control; disabled?: boolean; exact?: boolean; compute: (fieldValue: FieldPathValues) => TComputeValue; }): TComputeValue; // @public export function useWatch(): DeepPartialSkipArrayKey; // @public (undocumented) export type UseWatchProps = { defaultValue?: unknown; disabled?: boolean; name?: FieldPath | FieldPath[] | readonly FieldPath[]; control?: Control; exact?: boolean; compute?: (formValues: any) => any; }; // @public (undocumented) export type Validate = (value: TFieldValue, formValues: TFormValues) => ValidateResult | Promise; // @public (undocumented) export type ValidateResult = Message | Message[] | boolean | undefined; // Warning: (ae-forgotten-export) The symbol "VALIDATION_MODE" needs to be exported by the entry point index.d.ts // // @public (undocumented) export type ValidationMode = typeof VALIDATION_MODE; // @public (undocumented) export type ValidationModeFlags = { isOnSubmit: boolean; isOnBlur: boolean; isOnChange: boolean; isOnAll: boolean; isOnTouch: boolean; }; // @public (undocumented) export type ValidationRule = TValidationValue | ValidationValueMessage; // @public (undocumented) export type ValidationValue = boolean | number | string | RegExp; // @public (undocumented) export type ValidationValueMessage = { value: TValidationValue; message: Message; }; // @public (undocumented) export type WatchInternal = (fieldNames?: InternalFieldName | InternalFieldName[], defaultValue?: DeepPartial, isMounted?: boolean, isGlobal?: boolean) => FieldPathValue | FieldPathValues; // @public (undocumented) export type WatchObserver = (value: DeepPartial, info: { name?: FieldPath; type?: EventType; values?: unknown; }) => void; // Warnings were encountered during analysis: // // src/types/form.ts:486:3 - (ae-forgotten-export) The symbol "Subscription" needs to be exported by the entry point index.d.ts // (No @packageDocumentation comment for this package) ```