import { Control, FieldPath, ControllerFieldState, FieldValues } from 'react-hook-form'; /** * Defines the properties for the `useFieldState` hook. */ export type UseFieldStateProps = FieldPath> = { /** The control object from react-hook-form. */ control?: Control; /** Indicates whether the field is disabled. */ disabled?: boolean; /** The name of the field. */ name: TName; }; /** * Defines the return type of the `useFieldState` hook. */ export type UseFieldStateReturn = ControllerFieldState & { /** Indicates whether the field is disabled. */ disabled: boolean; /** Indicates whether the form is currently being submitted. */ isSubmitting: boolean; }; /** * Hook to get the state of a specific field in a react-hook-form. * * @see {@link https://github.com/react-hook-form/react-hook-form/blob/master/src/useController.ts#L173} for more information. * * @param props - The properties for the field state hook. * @returns The state of the field including its validation status, dirtiness, touched state, and errors. */ export declare function useFieldState = FieldPath>(props: UseFieldStateProps): UseFieldStateReturn;