import { DateField, DateFieldProps } from "../../rdp"; import { ChangeEvent, ReactNode, RefAttributes } from 'react'; import { Control, FieldError, FieldPath, FieldValues, PathValue, UseControllerProps } from 'react-hook-form'; export type DateFieldElementProps = FieldPath, TValue = unknown> = Omit & { rules?: UseControllerProps['rules']; name: TName; parseError?: (error: FieldError) => ReactNode; control?: Control; /** * You override the MUI's DateField 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 DateField. */ component?: typeof DateField; transform?: { input?: (value: PathValue) => TValue; output?: (event: ChangeEvent) => PathValue; }; }; type DateFieldElementComponent = = FieldPath, TValue = unknown>(props: DateFieldElementProps & RefAttributes) => JSX.Element; declare const _default: DateFieldElementComponent; export default _default;