UNPKG

532 BTypeScriptView Raw
1import type { DateRange } from "../types/index.js";
2/**
3 * Determines whether a given date is inside a specified date range.
4 *
5 * @since 9.0.0
6 * @group Utilities
7 */
8export declare function rangeIncludesDate(range: DateRange, date: Date,
9/** If `true`, the ends of the range are excluded. */
10excludeEnds?: boolean, dateLib?: import("../classes/DateLib.js").DateLib): boolean;
11/**
12 * @private
13 * @deprecated Use {@link rangeIncludesDate} instead.
14 */
15export declare const isDateInRange: (range: DateRange, date: Date) => boolean;