import * as React from "react"; import { SupportedLocaleCode } from "../../localize-date-format/LocaleMapper"; import { useTravelDateInput } from "../hooks/UseTravelDateInput"; import { TravelCalendarSizeVariant } from "./TravelCalendar"; import { RenderTravelDateContent } from "../types"; export interface TravelDateCalendarBodyProps { /** The calendar state, from useTravelDateInput. */ inputProps: ReturnType; languageLocaleCode: SupportedLocaleCode; previousMonthButtonAriaLabel: string; nextMonthButtonAriaLabel: string; firstMonthInMonthPicker: Date; numMonthsInMonthPicker: number; isDateDisabled?: (date: Date) => boolean; /** * Renders the content of each date in the calendar, in place of the day * number. The cell around it, with the selection, focus and keyboard * navigation, stays the calendar's. See RenderTravelDateContent. */ renderDateContent?: RenderTravelDateContent; prevMonthDisabled?: (visibleMonth: Date) => boolean; nextMonthDisabled?: (visibleMonth: Date) => boolean; size: TravelCalendarSizeVariant; dateTestId?: (date: Date) => string | undefined; previousMonthButtonTestId?: string; nextMonthButtonTestId?: string; calendarAriaLabel?: string; } /** * The month header, and either the calendar or the month picker. * * TravelDateCalendar and TravelDateCalendarPanel differ only in what they * render above this, so this is where the shared wiring lives. It returns a * fragment, which means the parts stay items of the parent layout. */ export declare const TravelDateCalendarBody: React.FC;