import { TextField, TextFieldProps } from "../../components"; import { ChangeEvent, ReactNode, RefAttributes } from 'react'; import { Control, FieldError, FieldPath, FieldValues, PathValue, UseControllerProps } from 'react-hook-form'; export type TextFieldElementProps = FieldPath, TValue = unknown> = Omit & { rules?: UseControllerProps['rules']; name: TName; parseError?: (error: FieldError) => ReactNode; control?: Control; /** * You override the MUI's TextField component by passing a reference of the component you want to use. * * This is especially useful when you want to use a customized version of TextField. */ component?: typeof TextField; transform?: { input?: (value: PathValue) => TValue; output?: (event: ChangeEvent) => PathValue; }; customInvalidFieldEmailMessage?: string; }; type TextFieldElementComponent = = FieldPath, TValue = unknown>(props: TextFieldElementProps & RefAttributes) => JSX.Element; declare const _default: TextFieldElementComponent; export default _default;