import { type UseControllerProps } from 'react-hook-form';
/**
 * Добавляет к переданным пропсам типы для react-hook-form. Позволяет переиспользовать логику типизации для филдов формы.
 * @example WithFormFieldProps<TextFieldProps, FieldValues>;
 */
export type WithFormFieldProps<TProps extends object, TFieldValues extends object> = Omit<TProps, 'name' | 'error'> & Omit<UseControllerProps<TFieldValues>, 'rules'>;
export type { FieldValues, Field as FormField, FieldArray as FormFieldArray, FieldArrayPath as FormFieldArrayPath, FieldArrayWithId as FormFieldArrayWithId, FieldError as FormFieldError, FieldErrors as FormFieldErrors, FieldPath as FormFieldPath, FieldValues as FormFieldValues, Path as FormPath, RegisterOptions as FormRegisterOptions, Resolver as FormResolver, UseFormGetValues, } from 'react-hook-form';
