UNPKG

625 BTypeScriptView Raw
1import type { DateLib, DayPickerProps } from "../types/index.js";
2/**
3 * Return the next previous the user can navigate to, according to the given
4 * options.
5 *
6 * Please note that the previous month is not always the previous calendar
7 * month:
8 *
9 * - If before the `calendarStartMonth` date, is `undefined`;
10 * - If the navigation is paged, is the number of months displayed before.
11 */
12export declare function getPreviousMonth(firstDisplayedMonth: Date, calendarStartMonth: Date | undefined, options: Pick<DayPickerProps, "numberOfMonths" | "pagedNavigation" | "disableNavigation">, dateLib: DateLib): Date | undefined;