UNPKG

381 BTypeScriptView Raw
1import type { DateLib, DayPickerProps, SelectHandler, SelectedValue, Selection } from "../types/index.js";
2export type UseSingle<T extends DayPickerProps> = {
3 select: SelectHandler<T>;
4 isSelected: (date: Date) => boolean;
5 selected: SelectedValue<T>;
6};
7export declare function useSingle<T extends DayPickerProps>(props: DayPickerProps, dateLib: DateLib): Selection<T>;