import { TimeUnit } from '../convert-units/index.js'; import { DateComparator } from './date-comparator.enum.js'; /** * Determines if date a is before/before or same/same/after or same/or after to date b. If you want to limit the granularity to a unit other * than milliseconds, pass it as the second parameter. * * When including a second parameter, it will match all units equal or larger. For example, if passing in month will check month and year, * or if passing in day will check day, month, and year. * * @param a - The first date to compare. * @param comparator - The comparator to use for the comparison. * @param b - The second date to compare. * @param unit - The unit of time to compare. * @returns True if the dates match the comparator, false otherwise. */ export declare function compareDates({ a, comparator, b, unit }: { a: Date; comparator: DateComparator; b: Date; unit?: TimeUnit; }): boolean;