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