UNPKG

1.15 kBTypeScriptView Raw
1import type { DateLib } from "../classes/DateLib.js";
2import type { DateAfter, DateBefore, DateInterval, DateRange, DayOfWeek } from "../types/index.js";
3/**
4 * Returns true if `matcher` is of type {@link DateInterval}.
5 *
6 * @group Utilities
7 */
8export declare function isDateInterval(matcher: unknown): matcher is DateInterval;
9/**
10 * Returns true if `value` is a {@link DateRange} type.
11 *
12 * @group Utilities
13 */
14export declare function isDateRange(value: unknown): value is DateRange;
15/**
16 * Returns true if `value` is of type {@link DateAfter}.
17 *
18 * @group Utilities
19 */
20export declare function isDateAfterType(value: unknown): value is DateAfter;
21/**
22 * Returns true if `value` is of type {@link DateBefore}.
23 *
24 * @group Utilities
25 */
26export declare function isDateBeforeType(value: unknown): value is DateBefore;
27/**
28 * Returns true if `value` is a {@link DayOfWeek} type.
29 *
30 * @group Utilities
31 */
32export declare function isDayOfWeekType(value: unknown): value is DayOfWeek;
33/**
34 * Returns true if `value` is an array of valid dates.
35 *
36 * @private
37 */
38export declare function isDatesArray(value: unknown, dateLib: DateLib): value is Date[];