import { MonthFormat } from '../common'; import type { DateChangeMeta, DisabledRules } from './Calendar.types'; export interface CalendarProps { /** The currently selected date, or `null` for no selection. */ value: Date | null; /** Earliest selectable date (inclusive). Dates before this are interactive but not selectable, and show a boundary prompt. */ min?: Date | null; /** Latest selectable date (inclusive). Dates after this are interactive but not selectable, and show a boundary prompt. */ max?: Date | null; /** Month name format in the header. Defaults to `'long'` (e.g. "January"). */ monthFormat?: `${MonthFormat}`; /** Placeholder text shown in the month/year cells when no date is selected. */ placeholder?: string; /** Rules for disabling specific weekdays, individual dates, or date ranges. The required `reason` is shown in an inline prompt and linked to disabled cells via `aria-describedby` for screen reader accessibility. */ disabledRules?: DisabledRules; /** Called whenever the focused date changes — including disabled and out-of-range dates. `meta.isEnabled` is `false` when the date is not selectable. */ onDateFocus?: (date: Date | null, meta: DateChangeMeta) => void; /** Called when a date is confirmed (click or Enter). Only fires for enabled dates. */ onChange?: (date: Date | null) => void; } /** * Inline calendar for selecting a single date. Powers [DateLookup](?path=/docs/forms-datelookup--docs). */ declare const Calendar: ({ value, min: minProp, max: maxProp, monthFormat, placeholder, disabledRules, onDateFocus, onChange, }: CalendarProps) => import("react").JSX.Element; export default Calendar; //# sourceMappingURL=Calendar.d.ts.map