/** * Copyright (c) 2025 Elara AI Pty Ltd * Dual-licensed under AGPL-3.0 and commercial license. See LICENSE for details. */ /** UTC calendar steps shared by scale, navigation and Node-safe window models. */ /** A calendar resolution: the period a time scale cuts its window into. */ export type TimeResolution = "hour" | "day" | "week" | "month" | "quarter" | "year"; /** * A UTC date `months` calendar months on, its day clamped to the target * month's last: Jan 31 plus one month is Feb 28 (or 29), never Mar 3. * * @param d - The date * @param months - The signed number of months * @returns The date, at the same time of day */ export declare function addMonthsClamped(d: Date, months: number): Date; /** * A UTC date `k` of a resolution's periods on, by the calendar: an element * moved a month keeps its day of the month (clamped), an hour or a week keeps * its time. * * @param d - The date * @param res - The resolution * @param k - The signed number of periods * @returns The date */ export declare function shiftCalendar(d: Date, res: TimeResolution, k: number): Date; //# sourceMappingURL=calendar-math.d.ts.map