import { DateFieldSingleChange, DateFieldSingleProps } from '../DateFieldSingle'; import { DateTime, WeekdayNumbers } from 'luxon'; export type DateFieldSingleConversion = { /** * The current value of the date field. */ value?: DateTime | null; /** * The default (uncontrolled) value of the date field. */ defaultValue?: DateTime | null; /** * The minimum date of the date field. */ minDate?: DateTime | null; /** * The maximum date of the date field. */ maxDate?: DateTime | null; /** * The unavailable dates of the date field. */ unavailable: { /** * The unavailable dates of the date field. */ dates?: DateTime[]; /** * The unavailable days of the week of the date field. */ daysOfWeek?: WeekdayNumbers[]; }; /** * The callback for when the date changes. */ onChange: (change: Omit & { date: DateTime | null; }) => void; }; /** * Converts the props of the DateFieldSingle component to Luxon DateTime objects for easier internal use. * @param props - The props of the DateFieldSingle component using ISO 8601 strings. * @returns The converted props using Luxon DateTime objects. */ export declare function useDateFieldSingleConversion({ value, defaultValue, minDate, maxDate, unavailable, onChange, }: DateFieldSingleProps): DateFieldSingleConversion;