import { MaskedDateInputProps } from './internal/MaskedDateInput'; import { DateMode } from './types'; export type DateFieldSingleChange = { /** * The date in ISO 8601 format. * @example "2025-07-02" */ date: string | null; /** * Whether the input is valid. That is, it matches the format and is not empty. * This does not mean that the date is valid according to the constraints. */ isInputValid: boolean; /** * Whether the input is empty. */ isInputEmpty: boolean; /** * Whether the date is valid according to the constraints. * Constraints include: * - Required * - Unavailable dates * - Unavailable days of the week * - Min date * - Max date */ isDateValid: boolean; }; export type DateFieldSingleChangeHandler = (change: DateFieldSingleChange) => void; export type DateFieldSingleProps = Omit & { value?: string | null; defaultValue?: string | null; onChange?: DateFieldSingleChangeHandler; onFocus?: (event: FocusEvent) => void; onBlur?: (event: FocusEvent) => void; mode?: Extract; disableHint?: boolean; disableCalendar?: boolean; unavailable?: { /** * The specific dates that are unavailable. ISO 8601 format. * @example ["2025-07-02"] */ dates?: string[]; /** * The days of the week that are unavailable. * (1-7, where 1 is Monday and 7 is Sunday) */ daysOfWeek?: (1 | 2 | 3 | 4 | 5 | 6 | 7)[]; }; minDate?: string; maxDate?: string; required?: boolean; }; export declare const DateFieldSingle: { ({ onFocus, onBlur, disableCalendar, required, mode, value: valueProp, defaultValue: defaultValueProp, minDate: minDateProp, maxDate: maxDateProp, unavailable: unavailableProp, onChange: onChangeProp, ...rest }: DateFieldSingleProps): import("react/jsx-runtime").JSX.Element; displayName: string; };