import { CommonProps, Refable, type Styleable } from "@trackunit/react-components"; import { ReactElement } from "react"; export type FurtherBackThanDays = { /** * This disables dates that are further back than the number of days specified from today. */ furtherBackThanDays: number; }; export type DisabledDaysMatcher = ((date: Date) => boolean) | { before?: Date; after?: Date; } | Array | FurtherBackThanDays; export interface DayPickerProps extends CommonProps, Refable, Styleable { /** * A callback function for when a date is selected */ onDaySelect?: (day: TValue) => void; /** * Define any days which may not be selected */ disabledDays?: DisabledDaysMatcher | Array; /** * Set any day which are selected */ selectedDay?: Date; /** * Set the language */ language: string; } /** * The DayPicker component is used when the user needs to select a date. * @param {DayPickerProps} props - The props for the DayPicker component * @returns {ReactElement} DayPicker component */ export declare const DayPicker: ({ onDaySelect, disabledDays, selectedDay, language, className, style, "data-testid": dataTestId, ref, }: DayPickerProps) => ReactElement;