UNPKG

date-fns

Version:

Modern JavaScript date utility library

2,076 lines (1,650 loc) 515 kB
// This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. // FP Interfaces interface CurriedFn1<A, R> { (a: A): R } interface CurriedFn2<A, B, R> { (a: A): CurriedFn1<B, R> (a: A, b: B): R } interface CurriedFn3<A, B, C, R> { (a: A): CurriedFn2<B, C, R> (a: A, b: B): CurriedFn1<C, R> (a: A, b: B, c: C): R } interface CurriedFn4<A, B, C, D, R> { (a: A): CurriedFn3<B, C, D, R> (a: A, b: B): CurriedFn2<C, D, R> (a: A, b: B, c: C): CurriedFn1<D, R> (a: A, b: B, c: C, d: D): R } // Type Aliases type Interval = { start: Date | number end: Date | number } type IntervalAliased = Interval type Locale = { code?: string formatDistance?: (...args: Array<any>) => any formatRelative?: (...args: Array<any>) => any localize?: { ordinalNumber: (...args: Array<any>) => any era: (...args: Array<any>) => any quarter: (...args: Array<any>) => any month: (...args: Array<any>) => any day: (...args: Array<any>) => any dayPeriod: (...args: Array<any>) => any } formatLong?: { date: (...args: Array<any>) => any time: (...args: Array<any>) => any dateTime: (...args: Array<any>) => any } match?: { ordinalNumber: (...args: Array<any>) => any era: (...args: Array<any>) => any quarter: (...args: Array<any>) => any month: (...args: Array<any>) => any day: (...args: Array<any>) => any dayPeriod: (...args: Array<any>) => any } options?: { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 } } type LocaleAliased = Locale type Duration = { years?: number months?: number weeks?: number days?: number hours?: number minutes?: number seconds?: number } type DurationAliased = Duration type Day = 0 | 1 | 2 | 3 | 4 | 5 | 6 type DayAliased = Day // Exported Type Aliases declare module 'date-fns' { export type Interval = IntervalAliased export type Locale = LocaleAliased export type Duration = DurationAliased export type Day = DayAliased } // Regular Functions declare module 'date-fns' { function add(date: Date | number, duration: Duration): Date namespace add {} function addBusinessDays(date: Date | number, amount: number): Date namespace addBusinessDays {} function addDays(date: Date | number, amount: number): Date namespace addDays {} function addHours(date: Date | number, amount: number): Date namespace addHours {} function addISOWeekYears(date: Date | number, amount: number): Date namespace addISOWeekYears {} function addMilliseconds(date: Date | number, amount: number): Date namespace addMilliseconds {} function addMinutes(date: Date | number, amount: number): Date namespace addMinutes {} function addMonths(date: Date | number, amount: number): Date namespace addMonths {} function addQuarters(date: Date | number, amount: number): Date namespace addQuarters {} function addSeconds(date: Date | number, amount: number): Date namespace addSeconds {} function addWeeks(date: Date | number, amount: number): Date namespace addWeeks {} function addYears(date: Date | number, amount: number): Date namespace addYears {} function areIntervalsOverlapping( intervalLeft: Interval, intervalRight: Interval, options?: { inclusive?: boolean } ): boolean namespace areIntervalsOverlapping {} function closestIndexTo( dateToCompare: Date | number, datesArray: (Date | number)[] ): number namespace closestIndexTo {} function closestTo( dateToCompare: Date | number, datesArray: (Date | number)[] ): Date namespace closestTo {} function compareAsc(dateLeft: Date | number, dateRight: Date | number): number namespace compareAsc {} function compareDesc( dateLeft: Date | number, dateRight: Date | number ): number namespace compareDesc {} function differenceInBusinessDays( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInBusinessDays {} function differenceInCalendarDays( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInCalendarDays {} function differenceInCalendarISOWeeks( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInCalendarISOWeeks {} function differenceInCalendarISOWeekYears( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInCalendarISOWeekYears {} function differenceInCalendarMonths( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInCalendarMonths {} function differenceInCalendarQuarters( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInCalendarQuarters {} function differenceInCalendarWeeks( dateLeft: Date | number, dateRight: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): number namespace differenceInCalendarWeeks {} function differenceInCalendarYears( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInCalendarYears {} function differenceInDays( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInDays {} function differenceInHours( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInHours {} function differenceInISOWeekYears( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInISOWeekYears {} function differenceInMilliseconds( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInMilliseconds {} function differenceInMinutes( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInMinutes {} function differenceInMonths( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInMonths {} function differenceInQuarters( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInQuarters {} function differenceInSeconds( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInSeconds {} function differenceInWeeks( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInWeeks {} function differenceInYears( dateLeft: Date | number, dateRight: Date | number ): number namespace differenceInYears {} function eachDayOfInterval( interval: Interval, options?: { step?: number } ): Date[] namespace eachDayOfInterval {} function eachHourOfInterval( interval: Interval, options?: { step?: number } ): Date[] namespace eachHourOfInterval {} function eachMinuteOfInterval( interval: Interval, options?: { step?: number } ): Date[] namespace eachMinuteOfInterval {} function eachMonthOfInterval(interval: Interval): Date[] namespace eachMonthOfInterval {} function eachQuarterOfInterval(interval: Interval): Date[] namespace eachQuarterOfInterval {} function eachWeekendOfInterval(interval: Interval): Date[] namespace eachWeekendOfInterval {} function eachWeekendOfMonth(date: Date | number): Date[] namespace eachWeekendOfMonth {} function eachWeekendOfYear(date: Date | number): Date[] namespace eachWeekendOfYear {} function eachWeekOfInterval( interval: Interval, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): Date[] namespace eachWeekOfInterval {} function eachYearOfInterval(interval: Interval): Date[] namespace eachYearOfInterval {} function endOfDay(date: Date | number): Date namespace endOfDay {} function endOfDecade( date: Date | number, options?: { additionalDigits?: 0 | 1 | 2 } ): Date namespace endOfDecade {} function endOfHour(date: Date | number): Date namespace endOfHour {} function endOfISOWeek(date: Date | number): Date namespace endOfISOWeek {} function endOfISOWeekYear(date: Date | number): Date namespace endOfISOWeekYear {} function endOfMinute(date: Date | number): Date namespace endOfMinute {} function endOfMonth(date: Date | number): Date namespace endOfMonth {} function endOfQuarter(date: Date | number): Date namespace endOfQuarter {} function endOfSecond(date: Date | number): Date namespace endOfSecond {} function endOfToday(): Date namespace endOfToday {} function endOfTomorrow(): Date namespace endOfTomorrow {} function endOfWeek( date: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): Date namespace endOfWeek {} function endOfYear(date: Date | number): Date namespace endOfYear {} function endOfYesterday(): Date namespace endOfYesterday {} function format( date: Date | number, format: string, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 firstWeekContainsDate?: number useAdditionalWeekYearTokens?: boolean useAdditionalDayOfYearTokens?: boolean } ): string namespace format {} function formatDistance( date: Date | number, baseDate: Date | number, options?: { includeSeconds?: boolean addSuffix?: boolean locale?: Locale } ): string namespace formatDistance {} function formatDistanceStrict( date: Date | number, baseDate: Date | number, options?: { addSuffix?: boolean unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' roundingMethod?: 'floor' | 'ceil' | 'round' locale?: Locale } ): string namespace formatDistanceStrict {} function formatDistanceToNow( date: Date | number, options?: { includeSeconds?: boolean addSuffix?: boolean locale?: Locale } ): string namespace formatDistanceToNow {} function formatDistanceToNowStrict( date: Date | number, options?: { addSuffix?: boolean unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' roundingMethod?: 'floor' | 'ceil' | 'round' locale?: Locale } ): string namespace formatDistanceToNowStrict {} function formatDuration( duration: Duration, options?: { format?: string[] zero?: boolean delimiter?: string locale?: Locale } ): string namespace formatDuration {} function formatISO( date: Date | number, options?: { format?: 'extended' | 'basic' representation?: 'complete' | 'date' | 'time' } ): string namespace formatISO {} function formatISO9075( date: Date | number, options?: { format?: 'extended' | 'basic' representation?: 'complete' | 'date' | 'time' } ): string namespace formatISO9075 {} function formatISODuration(duration: Duration): string namespace formatISODuration {} function formatRelative( date: Date | number, baseDate: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): string namespace formatRelative {} function formatRFC3339( date: Date | number, options?: { fractionDigits?: 0 | 1 | 2 | 3 } ): string namespace formatRFC3339 {} function formatRFC7231(date: Date | number): string namespace formatRFC7231 {} function fromUnixTime(unixTime: number): Date namespace fromUnixTime {} function getDate(date: Date | number): number namespace getDate {} function getDay(date: Date | number): 0 | 1 | 2 | 3 | 4 | 5 | 6 namespace getDay {} function getDayOfYear(date: Date | number): number namespace getDayOfYear {} function getDaysInMonth(date: Date | number): number namespace getDaysInMonth {} function getDaysInYear(date: Date | number): number namespace getDaysInYear {} function getDecade(date: Date | number): number namespace getDecade {} function getHours(date: Date | number): number namespace getHours {} function getISODay(date: Date | number): number namespace getISODay {} function getISOWeek(date: Date | number): number namespace getISOWeek {} function getISOWeeksInYear(date: Date | number): number namespace getISOWeeksInYear {} function getISOWeekYear(date: Date | number): number namespace getISOWeekYear {} function getMilliseconds(date: Date | number): number namespace getMilliseconds {} function getMinutes(date: Date | number): number namespace getMinutes {} function getMonth(date: Date | number): number namespace getMonth {} function getOverlappingDaysInIntervals( intervalLeft: Interval, intervalRight: Interval ): number namespace getOverlappingDaysInIntervals {} function getQuarter(date: Date | number): number namespace getQuarter {} function getSeconds(date: Date | number): number namespace getSeconds {} function getTime(date: Date | number): number namespace getTime {} function getUnixTime(date: Date | number): number namespace getUnixTime {} function getWeek( date: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 } ): number namespace getWeek {} function getWeekOfMonth( date: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): number namespace getWeekOfMonth {} function getWeeksInMonth( date: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): number namespace getWeeksInMonth {} function getWeekYear( date: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 } ): number namespace getWeekYear {} function getYear(date: Date | number): number namespace getYear {} function intervalToDuration(interval: Interval): Duration namespace intervalToDuration {} function intlFormat( argument: Date | number, formatOptions?: { localeMatcher?: 'lookup' | 'best fit' weekday?: 'narrow' | 'short' | 'long' era?: 'narrow' | 'short' | 'long' year?: 'numeric' | '2-digit' month?: 'numeric' | '2-digit' | 'narrow' | 'short' | 'long' day?: 'numeric' | '2-digit' hour?: 'numeric' | '2-digit' minute?: 'numeric' | '2-digit' second?: 'numeric' | '2-digit' timeZoneName?: 'short' | 'long' formatMatcher?: 'basic' | 'best fit' hour12?: boolean timeZone?: string }, localeOptions?: { locale?: string | string[] } ): string namespace intlFormat {} function isAfter(date: Date | number, dateToCompare: Date | number): boolean namespace isAfter {} function isBefore(date: Date | number, dateToCompare: Date | number): boolean namespace isBefore {} function isDate(value: any): boolean namespace isDate {} function isEqual(dateLeft: Date | number, dateRight: Date | number): boolean namespace isEqual {} function isExists(year: number, month: number, day: number): boolean namespace isExists {} function isFirstDayOfMonth(date: Date | number): boolean namespace isFirstDayOfMonth {} function isFriday(date: Date | number): boolean namespace isFriday {} function isFuture(date: Date | number): boolean namespace isFuture {} function isLastDayOfMonth(date: Date | number): boolean namespace isLastDayOfMonth {} function isLeapYear(date: Date | number): boolean namespace isLeapYear {} function isMatch( dateString: string, formatString: string, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 useAdditionalWeekYearTokens?: boolean useAdditionalDayOfYearTokens?: boolean } ): boolean namespace isMatch {} function isMonday(date: Date | number): boolean namespace isMonday {} function isPast(date: Date | number): boolean namespace isPast {} function isSameDay(dateLeft: Date | number, dateRight: Date | number): boolean namespace isSameDay {} function isSameHour( dateLeft: Date | number, dateRight: Date | number ): boolean namespace isSameHour {} function isSameISOWeek( dateLeft: Date | number, dateRight: Date | number ): boolean namespace isSameISOWeek {} function isSameISOWeekYear( dateLeft: Date | number, dateRight: Date | number ): boolean namespace isSameISOWeekYear {} function isSameMinute( dateLeft: Date | number, dateRight: Date | number ): boolean namespace isSameMinute {} function isSameMonth( dateLeft: Date | number, dateRight: Date | number ): boolean namespace isSameMonth {} function isSameQuarter( dateLeft: Date | number, dateRight: Date | number ): boolean namespace isSameQuarter {} function isSameSecond( dateLeft: Date | number, dateRight: Date | number ): boolean namespace isSameSecond {} function isSameWeek( dateLeft: Date | number, dateRight: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): boolean namespace isSameWeek {} function isSameYear( dateLeft: Date | number, dateRight: Date | number ): boolean namespace isSameYear {} function isSaturday(date: Date | number): boolean namespace isSaturday {} function isSunday(date: Date | number): boolean namespace isSunday {} function isThisHour(date: Date | number): boolean namespace isThisHour {} function isThisISOWeek(date: Date | number): boolean namespace isThisISOWeek {} function isThisMinute(date: Date | number): boolean namespace isThisMinute {} function isThisMonth(date: Date | number): boolean namespace isThisMonth {} function isThisQuarter(date: Date | number): boolean namespace isThisQuarter {} function isThisSecond(date: Date | number): boolean namespace isThisSecond {} function isThisWeek( date: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): boolean namespace isThisWeek {} function isThisYear(date: Date | number): boolean namespace isThisYear {} function isThursday(date: Date | number): boolean namespace isThursday {} function isToday(date: Date | number): boolean namespace isToday {} function isTomorrow(date: Date | number): boolean namespace isTomorrow {} function isTuesday(date: Date | number): boolean namespace isTuesday {} function isValid(date: any): boolean namespace isValid {} function isWednesday(date: Date | number): boolean namespace isWednesday {} function isWeekend(date: Date | number): boolean namespace isWeekend {} function isWithinInterval(date: Date | number, interval: Interval): boolean namespace isWithinInterval {} function isYesterday(date: Date | number): boolean namespace isYesterday {} function lastDayOfDecade(date: Date | number): Date namespace lastDayOfDecade {} function lastDayOfISOWeek(date: Date | number): Date namespace lastDayOfISOWeek {} function lastDayOfISOWeekYear(date: Date | number): Date namespace lastDayOfISOWeekYear {} function lastDayOfMonth(date: Date | number): Date namespace lastDayOfMonth {} function lastDayOfQuarter( date: Date | number, options?: { additionalDigits?: 0 | 1 | 2 } ): Date namespace lastDayOfQuarter {} function lastDayOfWeek( date: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): Date namespace lastDayOfWeek {} function lastDayOfYear(date: Date | number): Date namespace lastDayOfYear {} function lightFormat(date: Date | number, format: string): string namespace lightFormat {} function max(datesArray: (Date | number)[]): Date namespace max {} function milliseconds(duration: Duration): number namespace milliseconds {} function min(datesArray: (Date | number)[]): Date namespace min {} function nextDay(date: Date | number, day: Day): Date namespace nextDay {} function nextFriday(date: Date | number): Date namespace nextFriday {} function nextMonday(date: Date | number): Date namespace nextMonday {} function nextSaturday(date: Date | number): Date namespace nextSaturday {} function nextSunday(date: Date | number): Date namespace nextSunday {} function nextThursday(date: Date | number): Date namespace nextThursday {} function nextTuesday(date: Date | number): Date namespace nextTuesday {} function nextWednesday(date: Date | number): Date namespace nextWednesday {} function parse( dateString: string, formatString: string, referenceDate: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 useAdditionalWeekYearTokens?: boolean useAdditionalDayOfYearTokens?: boolean } ): Date namespace parse {} function parseISO( argument: string, options?: { additionalDigits?: 0 | 1 | 2 } ): Date namespace parseISO {} function parseJSON(argument: string | number | Date): Date namespace parseJSON {} function roundToNearestMinutes( date: Date | number, options?: { nearestTo?: number } ): Date namespace roundToNearestMinutes {} function set( date: Date | number, values: { year?: number month?: number date?: number hours?: number minutes?: number seconds?: number milliseconds?: number } ): Date namespace set {} function setDate(date: Date | number, dayOfMonth: number): Date namespace setDate {} function setDay( date: Date | number, day: number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): Date namespace setDay {} function setDayOfYear(date: Date | number, dayOfYear: number): Date namespace setDayOfYear {} function setHours(date: Date | number, hours: number): Date namespace setHours {} function setISODay(date: Date | number, day: number): Date namespace setISODay {} function setISOWeek(date: Date | number, isoWeek: number): Date namespace setISOWeek {} function setISOWeekYear(date: Date | number, isoWeekYear: number): Date namespace setISOWeekYear {} function setMilliseconds(date: Date | number, milliseconds: number): Date namespace setMilliseconds {} function setMinutes(date: Date | number, minutes: number): Date namespace setMinutes {} function setMonth(date: Date | number, month: number): Date namespace setMonth {} function setQuarter(date: Date | number, quarter: number): Date namespace setQuarter {} function setSeconds(date: Date | number, seconds: number): Date namespace setSeconds {} function setWeek( date: Date | number, week: number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 } ): Date namespace setWeek {} function setWeekYear( date: Date | number, weekYear: number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 } ): Date namespace setWeekYear {} function setYear(date: Date | number, year: number): Date namespace setYear {} function startOfDay(date: Date | number): Date namespace startOfDay {} function startOfDecade(date: Date | number): Date namespace startOfDecade {} function startOfHour(date: Date | number): Date namespace startOfHour {} function startOfISOWeek(date: Date | number): Date namespace startOfISOWeek {} function startOfISOWeekYear(date: Date | number): Date namespace startOfISOWeekYear {} function startOfMinute(date: Date | number): Date namespace startOfMinute {} function startOfMonth(date: Date | number): Date namespace startOfMonth {} function startOfQuarter(date: Date | number): Date namespace startOfQuarter {} function startOfSecond(date: Date | number): Date namespace startOfSecond {} function startOfToday(): Date namespace startOfToday {} function startOfTomorrow(): Date namespace startOfTomorrow {} function startOfWeek( date: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 } ): Date namespace startOfWeek {} function startOfWeekYear( date: Date | number, options?: { locale?: Locale weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6 firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 } ): Date namespace startOfWeekYear {} function startOfYear(date: Date | number): Date namespace startOfYear {} function startOfYesterday(): Date namespace startOfYesterday {} function sub(date: Date | number, duration: Duration): Date namespace sub {} function subBusinessDays(date: Date | number, amount: number): Date namespace subBusinessDays {} function subDays(date: Date | number, amount: number): Date namespace subDays {} function subHours(date: Date | number, amount: number): Date namespace subHours {} function subISOWeekYears(date: Date | number, amount: number): Date namespace subISOWeekYears {} function subMilliseconds(date: Date | number, amount: number): Date namespace subMilliseconds {} function subMinutes(date: Date | number, amount: number): Date namespace subMinutes {} function subMonths(date: Date | number, amount: number): Date namespace subMonths {} function subQuarters(date: Date | number, amount: number): Date namespace subQuarters {} function subSeconds(date: Date | number, amount: number): Date namespace subSeconds {} function subWeeks(date: Date | number, amount: number): Date namespace subWeeks {} function subYears(date: Date | number, amount: number): Date namespace subYears {} function toDate(argument: Date | number): Date namespace toDate {} const maxTime: number const minTime: number } declare module 'date-fns/add' { import { add } from 'date-fns' export default add } declare module 'date-fns/addBusinessDays' { import { addBusinessDays } from 'date-fns' export default addBusinessDays } declare module 'date-fns/addDays' { import { addDays } from 'date-fns' export default addDays } declare module 'date-fns/addHours' { import { addHours } from 'date-fns' export default addHours } declare module 'date-fns/addISOWeekYears' { import { addISOWeekYears } from 'date-fns' export default addISOWeekYears } declare module 'date-fns/addMilliseconds' { import { addMilliseconds } from 'date-fns' export default addMilliseconds } declare module 'date-fns/addMinutes' { import { addMinutes } from 'date-fns' export default addMinutes } declare module 'date-fns/addMonths' { import { addMonths } from 'date-fns' export default addMonths } declare module 'date-fns/addQuarters' { import { addQuarters } from 'date-fns' export default addQuarters } declare module 'date-fns/addSeconds' { import { addSeconds } from 'date-fns' export default addSeconds } declare module 'date-fns/addWeeks' { import { addWeeks } from 'date-fns' export default addWeeks } declare module 'date-fns/addYears' { import { addYears } from 'date-fns' export default addYears } declare module 'date-fns/areIntervalsOverlapping' { import { areIntervalsOverlapping } from 'date-fns' export default areIntervalsOverlapping } declare module 'date-fns/closestIndexTo' { import { closestIndexTo } from 'date-fns' export default closestIndexTo } declare module 'date-fns/closestTo' { import { closestTo } from 'date-fns' export default closestTo } declare module 'date-fns/compareAsc' { import { compareAsc } from 'date-fns' export default compareAsc } declare module 'date-fns/compareDesc' { import { compareDesc } from 'date-fns' export default compareDesc } declare module 'date-fns/differenceInBusinessDays' { import { differenceInBusinessDays } from 'date-fns' export default differenceInBusinessDays } declare module 'date-fns/differenceInCalendarDays' { import { differenceInCalendarDays } from 'date-fns' export default differenceInCalendarDays } declare module 'date-fns/differenceInCalendarISOWeeks' { import { differenceInCalendarISOWeeks } from 'date-fns' export default differenceInCalendarISOWeeks } declare module 'date-fns/differenceInCalendarISOWeekYears' { import { differenceInCalendarISOWeekYears } from 'date-fns' export default differenceInCalendarISOWeekYears } declare module 'date-fns/differenceInCalendarMonths' { import { differenceInCalendarMonths } from 'date-fns' export default differenceInCalendarMonths } declare module 'date-fns/differenceInCalendarQuarters' { import { differenceInCalendarQuarters } from 'date-fns' export default differenceInCalendarQuarters } declare module 'date-fns/differenceInCalendarWeeks' { import { differenceInCalendarWeeks } from 'date-fns' export default differenceInCalendarWeeks } declare module 'date-fns/differenceInCalendarYears' { import { differenceInCalendarYears } from 'date-fns' export default differenceInCalendarYears } declare module 'date-fns/differenceInDays' { import { differenceInDays } from 'date-fns' export default differenceInDays } declare module 'date-fns/differenceInHours' { import { differenceInHours } from 'date-fns' export default differenceInHours } declare module 'date-fns/differenceInISOWeekYears' { import { differenceInISOWeekYears } from 'date-fns' export default differenceInISOWeekYears } declare module 'date-fns/differenceInMilliseconds' { import { differenceInMilliseconds } from 'date-fns' export default differenceInMilliseconds } declare module 'date-fns/differenceInMinutes' { import { differenceInMinutes } from 'date-fns' export default differenceInMinutes } declare module 'date-fns/differenceInMonths' { import { differenceInMonths } from 'date-fns' export default differenceInMonths } declare module 'date-fns/differenceInQuarters' { import { differenceInQuarters } from 'date-fns' export default differenceInQuarters } declare module 'date-fns/differenceInSeconds' { import { differenceInSeconds } from 'date-fns' export default differenceInSeconds } declare module 'date-fns/differenceInWeeks' { import { differenceInWeeks } from 'date-fns' export default differenceInWeeks } declare module 'date-fns/differenceInYears' { import { differenceInYears } from 'date-fns' export default differenceInYears } declare module 'date-fns/eachDayOfInterval' { import { eachDayOfInterval } from 'date-fns' export default eachDayOfInterval } declare module 'date-fns/eachHourOfInterval' { import { eachHourOfInterval } from 'date-fns' export default eachHourOfInterval } declare module 'date-fns/eachMinuteOfInterval' { import { eachMinuteOfInterval } from 'date-fns' export default eachMinuteOfInterval } declare module 'date-fns/eachMonthOfInterval' { import { eachMonthOfInterval } from 'date-fns' export default eachMonthOfInterval } declare module 'date-fns/eachQuarterOfInterval' { import { eachQuarterOfInterval } from 'date-fns' export default eachQuarterOfInterval } declare module 'date-fns/eachWeekendOfInterval' { import { eachWeekendOfInterval } from 'date-fns' export default eachWeekendOfInterval } declare module 'date-fns/eachWeekendOfMonth' { import { eachWeekendOfMonth } from 'date-fns' export default eachWeekendOfMonth } declare module 'date-fns/eachWeekendOfYear' { import { eachWeekendOfYear } from 'date-fns' export default eachWeekendOfYear } declare module 'date-fns/eachWeekOfInterval' { import { eachWeekOfInterval } from 'date-fns' export default eachWeekOfInterval } declare module 'date-fns/eachYearOfInterval' { import { eachYearOfInterval } from 'date-fns' export default eachYearOfInterval } declare module 'date-fns/endOfDay' { import { endOfDay } from 'date-fns' export default endOfDay } declare module 'date-fns/endOfDecade' { import { endOfDecade } from 'date-fns' export default endOfDecade } declare module 'date-fns/endOfHour' { import { endOfHour } from 'date-fns' export default endOfHour } declare module 'date-fns/endOfISOWeek' { import { endOfISOWeek } from 'date-fns' export default endOfISOWeek } declare module 'date-fns/endOfISOWeekYear' { import { endOfISOWeekYear } from 'date-fns' export default endOfISOWeekYear } declare module 'date-fns/endOfMinute' { import { endOfMinute } from 'date-fns' export default endOfMinute } declare module 'date-fns/endOfMonth' { import { endOfMonth } from 'date-fns' export default endOfMonth } declare module 'date-fns/endOfQuarter' { import { endOfQuarter } from 'date-fns' export default endOfQuarter } declare module 'date-fns/endOfSecond' { import { endOfSecond } from 'date-fns' export default endOfSecond } declare module 'date-fns/endOfToday' { import { endOfToday } from 'date-fns' export default endOfToday } declare module 'date-fns/endOfTomorrow' { import { endOfTomorrow } from 'date-fns' export default endOfTomorrow } declare module 'date-fns/endOfWeek' { import { endOfWeek } from 'date-fns' export default endOfWeek } declare module 'date-fns/endOfYear' { import { endOfYear } from 'date-fns' export default endOfYear } declare module 'date-fns/endOfYesterday' { import { endOfYesterday } from 'date-fns' export default endOfYesterday } declare module 'date-fns/format' { import { format } from 'date-fns' export default format } declare module 'date-fns/formatDistance' { import { formatDistance } from 'date-fns' export default formatDistance } declare module 'date-fns/formatDistanceStrict' { import { formatDistanceStrict } from 'date-fns' export default formatDistanceStrict } declare module 'date-fns/formatDistanceToNow' { import { formatDistanceToNow } from 'date-fns' export default formatDistanceToNow } declare module 'date-fns/formatDistanceToNowStrict' { import { formatDistanceToNowStrict } from 'date-fns' export default formatDistanceToNowStrict } declare module 'date-fns/formatDuration' { import { formatDuration } from 'date-fns' export default formatDuration } declare module 'date-fns/formatISO' { import { formatISO } from 'date-fns' export default formatISO } declare module 'date-fns/formatISO9075' { import { formatISO9075 } from 'date-fns' export default formatISO9075 } declare module 'date-fns/formatISODuration' { import { formatISODuration } from 'date-fns' export default formatISODuration } declare module 'date-fns/formatRelative' { import { formatRelative } from 'date-fns' export default formatRelative } declare module 'date-fns/formatRFC3339' { import { formatRFC3339 } from 'date-fns' export default formatRFC3339 } declare module 'date-fns/formatRFC7231' { import { formatRFC7231 } from 'date-fns' export default formatRFC7231 } declare module 'date-fns/fromUnixTime' { import { fromUnixTime } from 'date-fns' export default fromUnixTime } declare module 'date-fns/getDate' { import { getDate } from 'date-fns' export default getDate } declare module 'date-fns/getDay' { import { getDay } from 'date-fns' export default getDay } declare module 'date-fns/getDayOfYear' { import { getDayOfYear } from 'date-fns' export default getDayOfYear } declare module 'date-fns/getDaysInMonth' { import { getDaysInMonth } from 'date-fns' export default getDaysInMonth } declare module 'date-fns/getDaysInYear' { import { getDaysInYear } from 'date-fns' export default getDaysInYear } declare module 'date-fns/getDecade' { import { getDecade } from 'date-fns' export default getDecade } declare module 'date-fns/getHours' { import { getHours } from 'date-fns' export default getHours } declare module 'date-fns/getISODay' { import { getISODay } from 'date-fns' export default getISODay } declare module 'date-fns/getISOWeek' { import { getISOWeek } from 'date-fns' export default getISOWeek } declare module 'date-fns/getISOWeeksInYear' { import { getISOWeeksInYear } from 'date-fns' export default getISOWeeksInYear } declare module 'date-fns/getISOWeekYear' { import { getISOWeekYear } from 'date-fns' export default getISOWeekYear } declare module 'date-fns/getMilliseconds' { import { getMilliseconds } from 'date-fns' export default getMilliseconds } declare module 'date-fns/getMinutes' { import { getMinutes } from 'date-fns' export default getMinutes } declare module 'date-fns/getMonth' { import { getMonth } from 'date-fns' export default getMonth } declare module 'date-fns/getOverlappingDaysInIntervals' { import { getOverlappingDaysInIntervals } from 'date-fns' export default getOverlappingDaysInIntervals } declare module 'date-fns/getQuarter' { import { getQuarter } from 'date-fns' export default getQuarter } declare module 'date-fns/getSeconds' { import { getSeconds } from 'date-fns' export default getSeconds } declare module 'date-fns/getTime' { import { getTime } from 'date-fns' export default getTime } declare module 'date-fns/getUnixTime' { import { getUnixTime } from 'date-fns' export default getUnixTime } declare module 'date-fns/getWeek' { import { getWeek } from 'date-fns' export default getWeek } declare module 'date-fns/getWeekOfMonth' { import { getWeekOfMonth } from 'date-fns' export default getWeekOfMonth } declare module 'date-fns/getWeeksInMonth' { import { getWeeksInMonth } from 'date-fns' export default getWeeksInMonth } declare module 'date-fns/getWeekYear' { import { getWeekYear } from 'date-fns' export default getWeekYear } declare module 'date-fns/getYear' { import { getYear } from 'date-fns' export default getYear } declare module 'date-fns/intervalToDuration' { import { intervalToDuration } from 'date-fns' export default intervalToDuration } declare module 'date-fns/intlFormat' { import { intlFormat } from 'date-fns' export default intlFormat } declare module 'date-fns/isAfter' { import { isAfter } from 'date-fns' export default isAfter } declare module 'date-fns/isBefore' { import { isBefore } from 'date-fns' export default isBefore } declare module 'date-fns/isDate' { import { isDate } from 'date-fns' export default isDate } declare module 'date-fns/isEqual' { import { isEqual } from 'date-fns' export default isEqual } declare module 'date-fns/isExists' { import { isExists } from 'date-fns' export default isExists } declare module 'date-fns/isFirstDayOfMonth' { import { isFirstDayOfMonth } from 'date-fns' export default isFirstDayOfMonth } declare module 'date-fns/isFriday' { import { isFriday } from 'date-fns' export default isFriday } declare module 'date-fns/isFuture' { import { isFuture } from 'date-fns' export default isFuture } declare module 'date-fns/isLastDayOfMonth' { import { isLastDayOfMonth } from 'date-fns' export default isLastDayOfMonth } declare module 'date-fns/isLeapYear' { import { isLeapYear } from 'date-fns' export default isLeapYear } declare module 'date-fns/isMatch' { import { isMatch } from 'date-fns' export default isMatch } declare module 'date-fns/isMonday' { import { isMonday } from 'date-fns' export default isMonday } declare module 'date-fns/isPast' { import { isPast } from 'date-fns' export default isPast } declare module 'date-fns/isSameDay' { import { isSameDay } from 'date-fns' export default isSameDay } declare module 'date-fns/isSameHour' { import { isSameHour } from 'date-fns' export default isSameHour } declare module 'date-fns/isSameISOWeek' { import { isSameISOWeek } from 'date-fns' export default isSameISOWeek } declare module 'date-fns/isSameISOWeekYear' { import { isSameISOWeekYear } from 'date-fns' export default isSameISOWeekYear } declare module 'date-fns/isSameMinute' { import { isSameMinute } from 'date-fns' export default isSameMinute } declare module 'date-fns/isSameMonth' { import { isSameMonth } from 'date-fns' export default isSameMonth } declare module 'date-fns/isSameQuarter' { import { isSameQuarter } from 'date-fns' export default isSameQuarter } declare module 'date-fns/isSameSecond' { import { isSameSecond } from 'date-fns' export default isSameSecond } declare module 'date-fns/isSameWeek' { import { isSameWeek } from 'date-fns' export default isSameWeek } declare module 'date-fns/isSameYear' { import { isSameYear } from 'date-fns' export default isSameYear } declare module 'date-fns/isSaturday' { import { isSaturday } from 'date-fns' export default isSaturday } declare module 'date-fns/isSunday' { import { isSunday } from 'date-fns' export default isSunday } declare module 'date-fns/isThisHour' { import { isThisHour } from 'date-fns' export default isThisHour } declare module 'date-fns/isThisISOWeek' { import { isThisISOWeek } from 'date-fns' export default isThisISOWeek } declare module 'date-fns/isThisMinute' { import { isThisMinute } from 'date-fns' export default isThisMinute } declare module 'date-fns/isThisMonth' { import { isThisMonth } from 'date-fns' export default isThisMonth } declare module 'date-fns/isThisQuarter' { import { isThisQuarter } from 'date-fns' export default isThisQuarter } declare module 'date-fns/isThisSecond' { import { isThisSecond } from 'date-fns' export default isThisSecond } declare module 'date-fns/isThisWeek' { import { isThisWeek } from 'date-fns' export default isThisWeek } declare module 'date-fns/isThisYear' { import { isThisYear } from 'date-fns' export default isThisYear } declare module 'date-fns/isThursday' { import { isThursday } from 'date-fns' export default isThursday } declare module 'date-fns/isToday' { import { isToday } from 'date-fns' export default isToday } declare module 'date-fns/isTomorrow' { import { isTomorrow } from 'date-fns' export default isTomorrow } declare module 'date-fns/isTuesday' { import { isTuesday } from 'date-fns' export default isTuesday } declare module 'date-fns/isValid' { import { isValid } from 'date-fns' export default isValid } declare module 'date-fns/isWednesday' { import { isWednesday } from 'date-fns' export default isWednesday } declare module 'date-fns/isWeekend' { import { isWeekend } from 'date-fns' export default isWeekend } declare module 'date-fns/isWithinInterval' { import { isWithinInterval } from 'date-fns' export default isWithinInterval } declare module 'date-fns/isYesterday' { import { isYesterday } from 'date-fns' export default isYesterday } declare module 'date-fns/lastDayOfDecade' { import { lastDayOfDecade } from 'date-fns' export default lastDayOfDecade } declare module 'date-fns/lastDayOfISOWeek' { import { lastDayOfISOWeek } from 'date-fns' export default lastDayOfISOWeek } declare module 'date-fns/lastDayOfISOWeekYear' { import { lastDayOfISOWeekYear } from 'date-fns' export default lastDayOfISOWeekYear } declare module 'date-fns/lastDayOfMonth' { import { lastDayOfMonth } from 'date-fns' export default lastDayOfMonth } declare module 'date-fns/lastDayOfQuarter' { import { lastDayOfQuarter } from 'date-fns' export default lastDayOfQuarter } declare module 'date-fns/lastDayOfWeek' { import { lastDayOfWeek } from 'date-fns' export default lastDayOfWeek } declare module 'date-fns/lastDayOfYear' { import { lastDayOfYear } from 'date-fns' export default lastDayOfYear } declare module 'date-fns/lightFormat' { import { lightFormat } from 'date-fns' export default lightFormat } declare module 'date-fns/max' { import { max } from 'date-fns' export default max } declare module 'date-fns/milliseconds' { import { milliseconds } from 'date-fns' export default milliseconds } declare module 'date-fns/min' { import { min } from 'date-fns' export default min } declare module 'date-fns/nextDay' { import { nextDay } from 'date-fns' export default nextDay } declare module 'date-fns/nextFriday' { import { nextFriday } from 'date-fns' export default nextFriday } declare module 'date-fns/nextMonday' { import { nextMonday } from 'date-fns' export default nextMonday } declare module 'date-fns/nextSaturday' { import { nextSaturday } from 'date-fns' export default nextSaturday } declare module 'date-fns/nextSunday' { import { nextSunday } from 'date-fns' export default nextSunday } declare module 'date-fns/nextThursday' { import { nextThursday } from 'date-fns' export default nextThursday } declare module 'date-fns/nextTuesday' { import { nextTuesday } from 'date-fns' export default nextTuesday } declare module 'date-fns/nextWednesday' { import { nextWednesday } from 'date-fns' export default nextWednesday } declare module 'date-fns/parse' { import { parse } from 'date-fns' export default parse } declare module 'date-fns/parseISO' { import { parseISO } from 'date-fns' export default parseISO } declare module 'date-fns/parseJSON' { import { parseJSON } from 'date-fns' export default parseJSON } declare module 'date-fns/roundToNearestMinutes' { import { roundToNearestMinutes } from 'date-fns' export default roundToNearestMinutes } declare module 'date-fns/set' { import { set } from 'date-fns' export default set } declare module 'date-fns/setDate' { import { setDate } from 'date-fns' export default setDate } declare module 'date-fns/setDay' { import { setDay } from 'date-fns' export default setDay } declare module 'date-fns/setDayOfYear' { import { setDayOfYear } from 'date-fns' export default setDayOfYear } declare module 'date-fns/setHours' { import { setHours } from 'date-fns' export default setHours } declare module 'date-fns/setISODay' { import { setISODay } from 'date-fns' export default setISODay } declare module 'date-fns/setISOWeek' { import { setISOWeek } from 'date-fns' export default setISOWeek } declare module 'date-fns/setISOWeekYear' { import { setISOWeekYear } from 'date-fns' export default setISOWeekYear } declare module 'date-fns/setMilliseconds' { import { setMilliseconds } from 'date-fns' export default setMilliseconds } declare module 'date-fns/setMinutes' { import { setMinutes } from 'date-fns' export default setMinutes } declare module 'date-fns/setMonth' { import { setMonth } from 'date-fns' export default setMonth } declare module 'date-fns/setQuarter' { import { setQuarter } from 'date-fns' export default setQuarter } declare module 'date-fns/setSeconds' { import { setSeconds } from 'date-fns' export default setSeconds } declare module 'date-fns/setWeek' { import { setWeek } from 'date-fns' export default setWeek } declare module 'date-fns/setWeekYear' { import { setWeekYear } from 'date-fns' export default setWeekYear } declare module 'date-fns/setYear' { import { setYear } from 'date-fns' export default setYear } declare module 'date-fns/startOfDay' { import { startOfDay } from 'date-fns' export default startOfDay } declare module 'date-fns/startOfDecade' { import { startOfDecade } from 'date-fns' export default startOfDecade } declare module 'date-fns/startOfHour' { import { startOfHour } from 'date-fns' export default startOfHour } declare module 'date-fns/startOfISOWeek' { import { startOfISOWeek } from 'date-fns' export default startOfISOWeek } declare module 'date-fns/startOfISOWeekYear' { import { startOfISOWeekYear } from 'date-fns' export default startOfISOWeekYear } declare module 'date-fns/startOfMinute' { import { startOfMinute } from 'date-fns' export default startOfMinute } declare module 'date-fns/startOfMonth' { import { startOfMonth } from 'date-fns' export default startOfMonth } declare module 'date-fns/startOfQuarter' { import { startOfQuarter } from 'date-fns' export default startOfQuarter } declare module 'date-fns/startOfSecond' { import { startOfSecond } from 'date-fns' export default startOfSecond } declare module 'date-fns/startOfToday' { import { startOfToday } from 'date-fns' export default startOfToday } declare module 'date-fns/startOfTomorrow' { import { startOfTomorrow } from 'date-fns' export default startOfTomorrow } declare module 'date-fns/startOfWeek' { import { startOfWeek } from 'date-fns' export default startOfWeek } declare module 'date-fns/startOfWeekYear' { import { startOfWeekYear } from 'date-fns' export default startOfWeekYear } declare module 'date-fns/startOfYear' { import { startOfYear } from 'date-fns' export default startOfYear } declare module 'date-fns/startOfYesterday' { import { startOfYesterday } from 'date-fns' export default startOfYesterday } declare module 'date-fns/sub' { import { sub } from 'date-fns' export default sub } declare module 'date-fns/subBusinessDays' { import { subBusinessDays } from 'date-fns' export default subBusinessDays } declare module 'date-fns/subDays' { import { subDays } from 'date-fns' export default subDays } declare module 'date-fns/subHours' { import { subHours } from 'date-fns' export default subHours } declare module 'date-fns/subISOWeekYears' { import { subISOWeekYears } from 'date-fns' export default subISOWeekYears } declare module 'date-fns/subMilliseconds' { import { subMilliseconds } from 'date-fns' export default subMilliseconds } declare module 'date-fns/subMi