UNPKG

@chayns-components/date

Version:

A set of beautiful React components for developing your own applications with chayns.

19 lines (18 loc) 762 B
import type { EMonth, IMonth } from '../types/calendar'; import { Language } from 'chayns-api'; export declare const getMonthAndYear: (date: Date) => IMonth; interface FormatMonthOptions { month: EMonth; locale: Language; } interface IsDateInRange { minDate: Date; maxDate: Date; currentDate: Date; } export declare const isDateInRange: ({ minDate, maxDate, currentDate }: IsDateInRange) => Date; export declare const getNewDate: (index: number, currentDate: Date) => Date; export declare const formatMonth: ({ month, locale }: FormatMonthOptions) => string; export declare const findNextDate: (date: Date, dateArray: Date[]) => Date | undefined; export declare const getYearsBetween: (startDate: Date, endDate: Date) => number[]; export {};