1 | import type { CalendarDay } from "./classes/index.js";
|
2 | import type { MoveFocusBy, MoveFocusDir, DateLib, DayPickerProps, Modifiers } from "./types/index.js";
|
3 | import { Calendar } from "./useCalendar.js";
|
4 | export type UseFocus = {
|
5 |
|
6 | focused: CalendarDay | undefined;
|
7 |
|
8 | isFocusTarget: (day: CalendarDay) => boolean;
|
9 |
|
10 | setFocused: (day: CalendarDay | undefined) => void;
|
11 |
|
12 | blur: () => void;
|
13 |
|
14 | moveFocus: (moveBy: MoveFocusBy, moveDir: MoveFocusDir) => void;
|
15 | };
|
16 |
|
17 | export declare function useFocus<T extends DayPickerProps>(props: T, calendar: Calendar, getModifiers: (day: CalendarDay) => Modifiers, isSelected: (date: Date) => boolean, dateLib: DateLib): UseFocus;
|