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