import { type ComponentProps, type Ref } from 'react'; import { type DateLimits, type Era, type RangeField } from '../core/date.js'; import { type CalendarHandle } from './lib/calendar-link.js'; export interface RootProps extends Omit, 'defaultValue' | 'onChange'> { /** Chosen day (the start in a range), ISO yyyy-mm-dd. */ value?: string; /** Uncontrolled single date: the first chosen day. */ defaultValue?: string; /** Range: the chosen end, ISO. */ endValue?: string; range?: boolean; /** Range: which end a pick sets (drives the preview). */ activeField?: RangeField; /** The day with the roving tab stop, whose month shows (controlled). */ focusDate?: Date; /** Uncontrolled: the first day with the tab stop (default the value, else today). */ defaultFocusDate?: Date; onFocusDateChange?: (date: Date) => void; /** An available day was picked (a click, Enter / Space, `TodayButton`). */ onPick?: (date: Date) => void; min?: string; max?: string; /** Days that can't be chosen. */ isDateDisabled?: DateLimits['isDateDisabled']; /** BCP 47 locale for the names (default: ``, else the browser's). */ locale?: string; /** Years in พ.ศ. (`be`, default for Thai) or ค.ศ. */ era?: Era; /** 0 = Sunday … 6 = Saturday. */ firstDay?: number; /** Months side by side, 1 to 12 (default 1); render the grid inside `Months`. */ months?: number; /** How far ‹ › turn several months: the whole page (`months`, default) or one month (`single`), as Cally's `pageBy`. */ pageBy?: 'months' | 'single'; /** The day shown as today, ISO (default: the real today), as Cally's `today`. */ today?: string; /** The weekday headings: `narrow` or `short` (default: the translation's, else narrow in Thai, short otherwise). */ weekdayFormat?: 'narrow' | 'short'; /** An ISO week number before each week (Cally `show-week-numbers`). */ showWeekNumbers?: boolean; /** Show other months' days, in six weeks (Cally `showOutsideDays`); by default they are empty cells and a week without a day of the month is left out. Several months never show them. */ showOutsideDays?: boolean; /** The months shown changed (not on the first show): the first and last day on show, as Cally's `pagechange`. */ onPageChange?: (page: { start: Date; end: Date; }) => void; /** `focusDay()`: put focus on the day with the tab stop. */ handle?: Ref; } /** Holds the month shown, the tab stop and the range preview; renders a `
`. */ export declare function Root(props: Readonly): import("react").JSX.Element;