import { type RefObject } from 'react';
import { type ControllerRenderProps, type Path } from 'react-hook-form';
import { type FieldValues, type WithFormFieldProps } from '../types';
import { type UseFormFieldErrorPropsReturn } from '../useFormFieldErrorProps';
import { type UseFormInputReturn } from '../useFormInputProps';
export type UseFormFieldProps<TFormFieldProps extends object, TFieldValues extends FieldValues> = WithFormFieldProps<TFormFieldProps, TFieldValues>;
type UseFormFieldPropsReturn<TFormFieldProps extends object, TFieldValues extends FieldValues> = ControllerRenderProps<TFieldValues, Path<TFieldValues>> & UseFormInputReturn<UseFormFieldProps<TFormFieldProps, TFieldValues>, TFieldValues> & UseFormFieldErrorPropsReturn & {
    inputRef: RefObject<HTMLInputElement>;
};
/**
 * хук предназначен для получения пропсов при инициализации нового поля в RHF
 */
export declare const useFormFieldProps: <TFormFieldProps extends object, TFieldValues extends FieldValues>(props: UseFormFieldProps<TFormFieldProps, TFieldValues>) => UseFormFieldPropsReturn<TFormFieldProps, TFieldValues>;
export {};
