import React from 'react'; import type { OverlayTriggerState } from 'react-stately'; interface CalendarPopoverProps { state: OverlayTriggerState; triggerRef: React.RefObject; /** `dialogProps` from `useDatePicker` / `useDateRangePicker`. */ dialogProps: React.HTMLAttributes; children: React.ReactNode; className?: string; } /** * The panel, in its own component because it is mounted only while open. * * `useDialog` focuses the panel and resolves the title id in effects keyed on * the ref — effects that run when the component CALLING the hook mounts. Called * beside `useDatePickerState` in the picker, that moment is when the field * mounts, with the calendar not yet in the DOM: the dialog never takes focus, * so Escape never reaches it, and `aria-labelledby` is silently dropped. Same * split as `Popover` / `PopoverPanel` and `Drawer`, for the same reason. */ export declare function CalendarPopover({ state, triggerRef, dialogProps, children, className, }: CalendarPopoverProps): React.JSX.Element; export declare namespace CalendarPopover { var displayName: string; } export {}; //# sourceMappingURL=CalendarPopover.d.ts.map