import moment from 'moment';
import { DateValidationError } from '@mui/x-date-pickers';
type Props = {
    minDate: Date | number;
    maxDate: Date | number;
    value: Date | number;
    onChange: (value: Date | number) => void;
};
export declare const useDateEditor: ({ minDate: minDateProp, maxDate: maxDateProp, value, onChange }: Props) => {
    errorMessage: string;
    editorValue: moment.Moment;
    editorMinDate: moment.Moment;
    editorMaxDate: moment.Moment;
    onChange: {
        (value: moment.Moment): void;
        cancel: () => void;
    };
    onError: (error: DateValidationError) => void;
};
export {};
