export declare type DateTimeComparer = (a: Date, b: Date) => number; /** * Compare the years between the two `Date`s */ export declare const compareYear: DateTimeComparer; /** * Compare the months between the two `Date`s. */ export declare const compareMonth: DateTimeComparer; /** * Compare the dates between the two `Date`s. */ export declare const compareDate: DateTimeComparer; /** * Compare the hours between the two `Date`s. */ export declare const compareHours: DateTimeComparer; /** * Compare the minutes between the two `Date`s. */ export declare const compareMinutes: DateTimeComparer; /** * Compare the seconds between the two `Date`s. */ export declare const compareSeconds: DateTimeComparer; /** * Compare the milliseconds between the two `Date`s. */ export declare const compareTime: DateTimeComparer; /** * Compare the milliseconds between the two `Date`s. */ export declare const compareMilliseconds: DateTimeComparer; /** * Create a function to compare day of week. * @param startDay The start day of week. 0 is Sunday, 1 is Monday ... 6 is Saturday. */ export declare function createCompareDayOfWeek(startDay?: number): DateTimeComparer; export declare const compareDayOfWeek: DateTimeComparer; export declare function createCompareWeekOfYear(startDay?: number): DateTimeComparer; export declare const compareWeekOfYear: DateTimeComparer; export declare type CompareDateTimeType = 'year' | 'month' | 'date' | 'hours' | 'minutes' | 'seconds' | 'millisecond' | 'time' | 'day' | 'week'; /** * @deprecated */ export declare function compareDateTime(type: CompareDateTimeType, a: Date, b: Date, startDay?: number): number; /** * Create a date time comparer for specified type. */ export declare function createCompareDateTime(type: CompareDateTimeType, startDay?: number): DateTimeComparer; //# sourceMappingURL=compare.d.ts.map