import { FieldError } from 'react-hook-form';
interface FieldProps<V> {
    name: string;
    defaultValue?: V;
    disabled?: boolean;
    autoFocus?: boolean;
    shouldUnregister?: boolean;
    validateOnMount?: boolean;
}
export declare function useField<V = string>({ name, defaultValue, disabled, autoFocus, shouldUnregister, validateOnMount, }: FieldProps<V>): {
    value: V;
    invalid: boolean;
    error: string;
    onChange: (...event: any[]) => void;
    onBlur: import('react-hook-form').Noop;
    disabled?: boolean;
    name: string;
    ref: import('react-hook-form').RefCallBack;
};
type FieldState = {
    invalid: boolean;
    isDirty: boolean;
    isTouched: boolean;
    isValidating: boolean;
    error?: FieldError;
};
export declare function useFieldState(field: string): FieldState;
export declare function useFieldState(field: string[]): FieldState[];
export {};
