1 | import type { DateRange, DateLib } from "../types/index.js";
|
2 | /**
|
3 | * Add a day to an existing range.
|
4 | *
|
5 | * The returned range takes in account the `undefined` values and if the added
|
6 | * day is already present in the range.
|
7 | *
|
8 | * @group Utilities
|
9 | */
|
10 | export declare function addToRange(
|
11 | /** The date to add to the range. */
|
12 | date: Date,
|
13 | /** The range where to add `date`. */
|
14 | initialRange: DateRange | undefined, min?: number, max?: number, required?: boolean,
|
15 | /** @ignore */
|
16 | dateLib?: DateLib): DateRange | undefined;
|