import { default as React } from 'react'; import { default as dayjs, Dayjs } from 'dayjs'; import { SxProps, Theme } from '@mui/material/styles'; import { InputValue } from '../../../validators'; export declare const ActionComponent: React.FC<{ showClearIcon: boolean; onClear?: () => void; onOpen?: () => void; }>; interface ReadOnlyDateFieldProps { format?: string; placeholder?: string; name?: string; className?: string; sx?: SxProps; showClearIcon?: boolean; onClear?: () => void; onOpen?: () => void; textFieldProps?: Record; } export declare const ReadOnlyDateField: React.FC; export declare const formatDayOfWeek: (weekday: Dayjs) => string; export type PickerType = 'date' | 'dateTime' | 'time' | 'year'; export declare const getPickerTypeFromFormat: (format?: string) => PickerType; export declare const getFinalFormat: (format?: string) => string; export declare const getPlaceholderByFormat: (format?: string, customPlaceholder?: string) => string; export declare const convertToDate: (val: InputValue, format: string) => Dayjs | null; export declare const getPickerProps: ({ currentValue, finalFormat, onChange, onDraftChange, disabled, minDate, maxDate, placeholder, name, otherProps, onClear, onOpen, onClose, open, }: { currentValue: InputValue; finalFormat: string; onChange: (date: Dayjs | null) => void; onDraftChange: (date: Dayjs | null) => void; open: boolean; disabled: boolean; minDate?: InputValue; maxDate?: InputValue; placeholder?: string; name?: string; onClear?: () => void; onOpen?: () => void; onClose?: () => void; otherProps: any; }) => { open: boolean; value: dayjs.Dayjs | null; onChange: (date: Dayjs | null) => void; onAccept: (date: Dayjs | null) => void; onClose: (() => void) | undefined; disabled: boolean; minDate: dayjs.Dayjs | undefined; maxDate: dayjs.Dayjs | undefined; format: string; reduceAnimations: boolean; slots: { field: React.FC; }; slotProps: { field: { format: string; placeholder: string; name: string | undefined; className: string; sx: SxProps; showClearIcon: boolean; onClear: (() => void) | undefined; onOpen: (() => void) | undefined; textFieldProps: Pick; }; layout: { sx: {}; }; day: { sx: SxProps; }; popper: { sx: SxProps; disablePortal: boolean; popperOptions: { strategy: "fixed"; }; }; }; }; export {};