// @flow // This file is generated automatically by `scripts/build/typings.js`. Please, don't change it. export type Interval = { start: Date | number, end: Date | number } export type Locale = { formatDistance: (...args: Array) => any, formatRelative: (...args: Array) => any, localize: { ordinalNumber: (...args: Array) => any, era: (...args: Array) => any, quarter: (...args: Array) => any, month: (...args: Array) => any, day: (...args: Array) => any, dayPeriod: (...args: Array) => any }, formatLong: Object, date: (...args: Array) => any, time: (...args: Array) => any, dateTime: (...args: Array) => any, match: { ordinalNumber: (...args: Array) => any, era: (...args: Array) => any, quarter: (...args: Array) => any, month: (...args: Array) => any, day: (...args: Array) => any, dayPeriod: (...args: Array) => any }, options?: { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7 } } type CurriedFn1 = (a: A) => R type CurriedFn2 = ( a: A ) => CurriedFn1 | ((a: A, b: B) => R) type CurriedFn3 = ( a: A ) => | CurriedFn2 | (( a: A, b: B ) => CurriedFn1 | ((a: A, b: B, c: C) => R)) type CurriedFn4 = ( a: A ) => | CurriedFn3 | (( a: A, b: B ) => | CurriedFn2 | (( a: A, b: B, c: C ) => CurriedFn1 | ((a: A, b: B, c: C, d: D) => R))) declare module.exports: { addBusinessDays: CurriedFn2, addDays: CurriedFn2, addHours: CurriedFn2, addISOWeekYears: CurriedFn2, addMilliseconds: CurriedFn2, addMinutes: CurriedFn2, addMonths: CurriedFn2, addQuarters: CurriedFn2, addSeconds: CurriedFn2, addWeeks: CurriedFn2, addYears: CurriedFn2, areIntervalsOverlapping: CurriedFn2, closestIndexTo: CurriedFn2<(Date | number)[], Date | number, number>, closestTo: CurriedFn2<(Date | number)[], Date | number, Date>, compareAsc: CurriedFn2, compareDesc: CurriedFn2, differenceInBusinessDays: CurriedFn2, differenceInCalendarDays: CurriedFn2, differenceInCalendarISOWeeks: CurriedFn2< Date | number, Date | number, number >, differenceInCalendarISOWeekYears: CurriedFn2< Date | number, Date | number, number >, differenceInCalendarMonths: CurriedFn2, differenceInCalendarQuarters: CurriedFn2< Date | number, Date | number, number >, differenceInCalendarWeeks: CurriedFn2, differenceInCalendarWeeksWithOptions: CurriedFn3< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, Date | number, number >, differenceInCalendarYears: CurriedFn2, differenceInDays: CurriedFn2, differenceInHours: CurriedFn2, differenceInISOWeekYears: CurriedFn2, differenceInMilliseconds: CurriedFn2, differenceInMinutes: CurriedFn2, differenceInMonths: CurriedFn2, differenceInQuarters: CurriedFn2, differenceInSeconds: CurriedFn2, differenceInWeeks: CurriedFn2, differenceInYears: CurriedFn2, eachDayOfInterval: CurriedFn1, eachDayOfIntervalWithOptions: CurriedFn2< { step?: number }, Interval, Date[] >, eachWeekendOfInterval: CurriedFn1, eachWeekendOfMonth: CurriedFn1, eachWeekendOfYear: CurriedFn1, eachWeekOfInterval: CurriedFn1, eachWeekOfIntervalWithOptions: CurriedFn2< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Interval, Date[] >, endOfDay: CurriedFn1, endOfDecade: CurriedFn1, endOfDecadeWithOptions: CurriedFn2< { additionalDigits?: 0 | 1 | 2 }, Date | number, Date >, endOfHour: CurriedFn1, endOfISOWeek: CurriedFn1, endOfISOWeekYear: CurriedFn1, endOfMinute: CurriedFn1, endOfMonth: CurriedFn1, endOfQuarter: CurriedFn1, endOfSecond: CurriedFn1, endOfWeek: CurriedFn1, endOfWeekWithOptions: CurriedFn2< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, Date >, endOfYear: CurriedFn1, format: CurriedFn2, formatDistance: CurriedFn2, formatDistanceStrict: CurriedFn2, formatDistanceStrictWithOptions: CurriedFn3< { locale?: Locale, roundingMethod?: 'floor' | 'ceil' | 'round', unit?: 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year', addSuffix?: boolean }, Date | number, Date | number, string >, formatDistanceWithOptions: CurriedFn3< { locale?: Locale, addSuffix?: boolean, includeSeconds?: boolean }, Date | number, Date | number, string >, formatISO: CurriedFn1, formatISO9075: CurriedFn1, formatISO9075WithOptions: CurriedFn2< { representation?: 'complete' | 'date' | 'time', format?: 'extended' | 'basic' }, Date | number, string >, formatISOWithOptions: CurriedFn2< { representation?: 'complete' | 'date' | 'time', format?: 'extended' | 'basic' }, Date | number, string >, formatRelative: CurriedFn2, formatRelativeWithOptions: CurriedFn3< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, Date | number, string >, formatRFC3339: CurriedFn1, formatRFC3339WithOptions: CurriedFn2< { fractionDigits?: 0 | 1 | 2 | 3 }, Date | number, string >, formatRFC7231: CurriedFn1, formatWithOptions: CurriedFn3< { useAdditionalDayOfYearTokens?: boolean, useAdditionalWeekYearTokens?: boolean, firstWeekContainsDate?: number, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, string, Date | number, string >, fromUnixTime: CurriedFn1, getDate: CurriedFn1, getDay: CurriedFn1, getDayOfYear: CurriedFn1, getDaysInMonth: CurriedFn1, getDaysInYear: CurriedFn1, getDecade: CurriedFn1, getHours: CurriedFn1, getISODay: CurriedFn1, getISOWeek: CurriedFn1, getISOWeeksInYear: CurriedFn1, getISOWeekYear: CurriedFn1, getMilliseconds: CurriedFn1, getMinutes: CurriedFn1, getMonth: CurriedFn1, getOverlappingDaysInIntervals: CurriedFn2, getQuarter: CurriedFn1, getSeconds: CurriedFn1, getTime: CurriedFn1, getUnixTime: CurriedFn1, getWeek: CurriedFn1, getWeekOfMonth: CurriedFn1, getWeekOfMonthWithOptions: CurriedFn2< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, number >, getWeeksInMonth: CurriedFn1, getWeeksInMonthWithOptions: CurriedFn2< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, number >, getWeekWithOptions: CurriedFn2< { firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, number >, getWeekYear: CurriedFn1, getWeekYearWithOptions: CurriedFn2< { firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, number >, getYear: CurriedFn1, isAfter: CurriedFn2, isBefore: CurriedFn2, isDate: CurriedFn1, isEqual: CurriedFn2, isFirstDayOfMonth: CurriedFn1, isFriday: CurriedFn1, isLastDayOfMonth: CurriedFn1, isLeapYear: CurriedFn1, isMonday: CurriedFn1, isSameDay: CurriedFn2, isSameHour: CurriedFn2, isSameISOWeek: CurriedFn2, isSameISOWeekYear: CurriedFn2, isSameMinute: CurriedFn2, isSameMonth: CurriedFn2, isSameQuarter: CurriedFn2, isSameSecond: CurriedFn2, isSameWeek: CurriedFn2, isSameWeekWithOptions: CurriedFn3< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, Date | number, boolean >, isSameYear: CurriedFn2, isSaturday: CurriedFn1, isSunday: CurriedFn1, isThursday: CurriedFn1, isTuesday: CurriedFn1, isValid: CurriedFn1, isWednesday: CurriedFn1, isWeekend: CurriedFn1, isWithinInterval: CurriedFn2, lastDayOfDecade: CurriedFn1, lastDayOfISOWeek: CurriedFn1, lastDayOfISOWeekYear: CurriedFn1, lastDayOfMonth: CurriedFn1, lastDayOfQuarter: CurriedFn1, lastDayOfQuarterWithOptions: CurriedFn2< { additionalDigits?: 0 | 1 | 2 }, Date | number, Date >, lastDayOfWeek: CurriedFn1, lastDayOfWeekWithOptions: CurriedFn2< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, Date >, lastDayOfYear: CurriedFn1, lightFormat: CurriedFn2, max: CurriedFn1<(Date | number)[], Date>, min: CurriedFn1<(Date | number)[], Date>, parse: CurriedFn3, parseISO: CurriedFn1, parseISOWithOptions: CurriedFn2< { additionalDigits?: 0 | 1 | 2 }, string, Date >, parseJSON: CurriedFn1, parseWithOptions: CurriedFn4< { useAdditionalDayOfYearTokens?: boolean, useAdditionalWeekYearTokens?: boolean, firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, string, string, Date >, roundToNearestMinutes: CurriedFn1, roundToNearestMinutesWithOptions: CurriedFn2< { nearestTo?: number }, Date | number, Date >, set: CurriedFn2< { milliseconds?: number, seconds?: number, minutes?: number, hours?: number, date?: number, month?: number, year?: number }, Date | number, Date >, setDate: CurriedFn2, setDay: CurriedFn2, setDayOfYear: CurriedFn2, setDayWithOptions: CurriedFn3< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, number, Date | number, Date >, setHours: CurriedFn2, setISODay: CurriedFn2, setISOWeek: CurriedFn2, setISOWeekYear: CurriedFn2, setMilliseconds: CurriedFn2, setMinutes: CurriedFn2, setMonth: CurriedFn2, setQuarter: CurriedFn2, setSeconds: CurriedFn2, setWeek: CurriedFn2, setWeekWithOptions: CurriedFn3< { firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, number, Date | number, Date >, setWeekYear: CurriedFn2, setWeekYearWithOptions: CurriedFn3< { firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, number, Date | number, Date >, setYear: CurriedFn2, startOfDay: CurriedFn1, startOfDecade: CurriedFn1, startOfHour: CurriedFn1, startOfISOWeek: CurriedFn1, startOfISOWeekYear: CurriedFn1, startOfMinute: CurriedFn1, startOfMonth: CurriedFn1, startOfQuarter: CurriedFn1, startOfSecond: CurriedFn1, startOfWeek: CurriedFn1, startOfWeekWithOptions: CurriedFn2< { weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, Date >, startOfWeekYear: CurriedFn1, startOfWeekYearWithOptions: CurriedFn2< { firstWeekContainsDate?: 1 | 2 | 3 | 4 | 5 | 6 | 7, weekStartsOn?: 0 | 1 | 2 | 3 | 4 | 5 | 6, locale?: Locale }, Date | number, Date >, startOfYear: CurriedFn1, subBusinessDays: CurriedFn2, subDays: CurriedFn2, subHours: CurriedFn2, subISOWeekYears: CurriedFn2, subMilliseconds: CurriedFn2, subMinutes: CurriedFn2, subMonths: CurriedFn2, subQuarters: CurriedFn2, subSeconds: CurriedFn2, subWeeks: CurriedFn2, subYears: CurriedFn2, toDate: CurriedFn1, maxTime: number, minTime: number }