import * as React from "react"; import { DayData } from "../../../util/calendar/CalendarDataFactory"; import { Day } from "date-fns"; import { TravelCalendarSizeVariant } from "./TravelCalendar"; import { RenderTravelDateContent } from "../types"; export interface TravelDateCellProps { onClick: (date: Date) => void; day: DayData; visibleMonth: Date; selectedStartDate: Date | undefined; selectedEndDate: Date | undefined; isValidDateRange: boolean; onChangeVisibleMonth: (visibleMonth: Date) => void; /** Focuses the date once its month is shown, which the app decides. */ focusDateWhenShown: (date: Date) => void; onFocusDate: (date: Date) => void; /** First day of the week in the grid, used by Home and End. */ weekStartsOn: Day; isPrevMonthDisabled: boolean; isNextMonthDisabled: boolean; onStartHover: (date: Date) => void; onEndHover: (date: Date) => void; /** Current date that the mouse is hovering over. */ hoverDate: Date | undefined; /** The other date to show range highlight between, when user hovers the mouse. */ hoverAnchor: Date | undefined; today: Date; /** The one date in the grid that carries the tab stop, if any. */ focusableDate: Date | undefined; calendarId: string; isDateDisabled?: (date: Date) => boolean; dateTestId?: (date: Date) => string | undefined; size: TravelCalendarSizeVariant; /** * If "left", only hovering on earlier dates will create a highlight. If undefined, no range will be highlighted. */ hoverHighlightDirection: "left" | "right" | undefined; renderDateContent?: RenderTravelDateContent; } export declare const TravelDateCell: React.FC;