UNPKG

846 BTypeScriptView Raw
1import * as defaultFormatters from "../formatters/index.js";
2import type { DayPickerProps } from "../types/index.js";
3/** Return the formatters from the props merged with the default formatters. */
4export declare function getFormatters(customFormatters: DayPickerProps["formatters"]): {
5 formatCaption: typeof defaultFormatters.formatCaption;
6 formatMonthCaption: typeof defaultFormatters.formatMonthCaption;
7 formatMonthDropdown: typeof defaultFormatters.formatMonthDropdown;
8 formatYearCaption: typeof defaultFormatters.formatYearCaption;
9 formatYearDropdown: typeof defaultFormatters.formatYearDropdown;
10 formatDay: typeof defaultFormatters.formatDay;
11 formatWeekNumber: typeof defaultFormatters.formatWeekNumber;
12 formatWeekdayName: typeof defaultFormatters.formatWeekdayName;
13 formatWeekNumberHeader(): string;
14};