1 | import { Weekday, WeekdayStr } from './weekday';
|
2 | export interface QueryMethods {
|
3 | all(): Date[];
|
4 | between(after: Date, before: Date, inc: boolean): Date[];
|
5 | before(date: Date, inc: boolean): Date | null;
|
6 | after(date: Date, inc: boolean): Date | null;
|
7 | }
|
8 | export declare type QueryMethodTypes = keyof QueryMethods;
|
9 | export declare type IterResultType<M extends QueryMethodTypes> = M extends 'all' | 'between' ? Date[] : Date | null;
|
10 | export declare enum Frequency {
|
11 | YEARLY = 0,
|
12 | MONTHLY = 1,
|
13 | WEEKLY = 2,
|
14 | DAILY = 3,
|
15 | HOURLY = 4,
|
16 | MINUTELY = 5,
|
17 | SECONDLY = 6
|
18 | }
|
19 | export declare function freqIsDailyOrGreater(freq: Frequency): freq is Frequency.YEARLY | Frequency.MONTHLY | Frequency.WEEKLY | Frequency.DAILY;
|
20 | export interface Options {
|
21 | freq: Frequency;
|
22 | dtstart: Date | null;
|
23 | interval: number;
|
24 | wkst: Weekday | number | null;
|
25 | count: number | null;
|
26 | until: Date | null;
|
27 | tzid: string | null;
|
28 | bysetpos: number | number[] | null;
|
29 | bymonth: number | number[] | null;
|
30 | bymonthday: number | number[] | null;
|
31 | bynmonthday: number[] | null;
|
32 | byyearday: number | number[] | null;
|
33 | byweekno: number | number[] | null;
|
34 | byweekday: ByWeekday | ByWeekday[] | null;
|
35 | bynweekday: number[][] | null;
|
36 | byhour: number | number[] | null;
|
37 | byminute: number | number[] | null;
|
38 | bysecond: number | number[] | null;
|
39 | byeaster: number | null;
|
40 | }
|
41 | export interface ParsedOptions extends Options {
|
42 | dtstart: Date;
|
43 | wkst: number;
|
44 | bysetpos: number[];
|
45 | bymonth: number[];
|
46 | bymonthday: number[];
|
47 | bynmonthday: number[];
|
48 | byyearday: number[];
|
49 | byweekno: number[];
|
50 | byweekday: number[];
|
51 | byhour: number[];
|
52 | byminute: number[];
|
53 | bysecond: number[];
|
54 | }
|
55 | export declare type ByWeekday = WeekdayStr | number | Weekday;
|
56 |
|
\ | No newline at end of file |