UNPKG

@trellixio/roaster-coffee

Version:
40 lines 2.07 kB
import { DateFormat, DateSeparator, IsDateValid, Week } from './types'; export declare const WEEKDAYS: number[]; export declare function getWeeksForMonth(month: number, year: number): Week[]; export declare function isSameDay(day1: Date, day2: Date): boolean; export declare function dateIsSelected(day: Date | null, date: Date): boolean; export declare function getNextDisplayMonth(month: number): number; export declare function getNextDisplayYear(month: number, year: number): number; export declare function getPreviousDisplayMonth(month: number): number; export declare function getPreviousDisplayYear(month: number, year: number): number; export declare function isDateAfter(date: Date, dateToCompare: Date): boolean; export declare function isDateBefore(date: Date, dateToCompare: Date): boolean; export declare function isDateDisabled(date: Date, datesToCompare: Date[]): boolean; export declare function monthName(month: number): string; export declare function weekdayName(weekday: number): string; export declare const parseDate: (date: Date) => string; export declare const formatDate: (date: Date, separator?: DateSeparator, dateFormat?: DateFormat) => string; export declare function isDateValid({ date, maxDate, minDate }: IsDateValid): boolean; export declare function dateStringParser(dateString: string): Date; export declare function getSeparatorIndex(dateFormat: DateFormat): { first: number; second: number; }; export declare function noop(): void; export declare function pickCalendarProps<T extends Record<string, any>>(props: T): { calendarProps: { value: any; month: any; maxDate: any; minDate: any; year: any; dateFormat: any; separator: any; defaultValue: any; disableSpecificDates: any; onChange: any; onInputError: any; }; others: Omit<T, "value" | "defaultValue" | "onChange" | "separator" | "month" | "maxDate" | "minDate" | "year" | "onInputError" | "disableSpecificDates" | "dateFormat">; }; //# sourceMappingURL=index.d.ts.map