import { type RefObject } from 'react'; import type { DateLimits, Era, RangeField } from '../../core/date.js'; /** What `Calendar.Root`'s handle does: focus the day with the roving tab stop. */ export interface CalendarHandle { focusDay: () => void; } /** The state a date picker hands the calendar in its popup (the `Calendar.Root` props it fills in). */ export interface CalendarLinkProps { value: string; endValue: string; range: boolean; activeField: RangeField; focusDate: Date; onFocusDateChange: (date: Date) => void; onPick: (date: Date) => void; min: string; max: string; isDateDisabled: DateLimits['isDateDisabled']; locale: string; era: Era; } export interface CalendarLink { props: CalendarLinkProps; /** Set by the calendar, so the picker can move focus into its grid. */ handle: RefObject; } /** * Links a `Calendar.Root` to the `DatePicker.Popup` around it (React Aria style): the calendar takes * the picker's state without being passed it, and the picker can focus its grid. */ export declare const CalendarLinkContext: import("react").Context;