/** * @deprecated RecurringSelect will be removed in the next major version */ export declare enum WeekDay { Sunday = 0, Monday = 1, Tuesday = 2, Wednesday = 3, Thursday = 4, Friday = 5, Saturday = 6 } /** * @deprecated RecurringSelect will be removed in the next major version */ export type DayOfMonth = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | "LAST"; /** * @deprecated RecurringSelect will be removed in the next major version */ export declare enum DurationPeriod { Day = "Day", Week = "Week", DayOfMonth = "DayOfMonth", WeekDayOfMonth = "WeekDayOfMonth", Year = "Year", Visit = "Visit" } export interface RecurrenceRuleDay { type: DurationPeriod.Day; } export interface RecurrenceRuleWeek { type: DurationPeriod.Week; weekDays: Set; } export interface RecurrenceRuleYear { type: DurationPeriod.Year; } export interface RecurrenceRuleDayOfMonth { type: DurationPeriod.DayOfMonth; date: Set; } export interface RecurrenceRuleWeekDayOfMonth { type: DurationPeriod.WeekDayOfMonth; dayOfWeek: [Set, Set, Set, Set]; } /** * @deprecated RecurringSelect will be removed in the next major version */ export type RecurrenceRule = { interval: number; } & (RecurrenceRuleDay | RecurrenceRuleWeek | RecurrenceRuleYear | RecurrenceRuleDayOfMonth | RecurrenceRuleWeekDayOfMonth); export interface InitialStateMap { [DurationPeriod.Day]: { type: DurationPeriod.Day; }; [DurationPeriod.Week]: { type: DurationPeriod.Week; weekDays: Set; }; [DurationPeriod.DayOfMonth]: { type: DurationPeriod.DayOfMonth; date: Set; }; [DurationPeriod.WeekDayOfMonth]: { type: DurationPeriod.WeekDayOfMonth; dayOfWeek: [Set, Set, Set, Set]; }; [DurationPeriod.Year]: { type: DurationPeriod.Year; }; } export declare const typeInitialStateMap: InitialStateMap; export declare const isMonthly: (rule: RecurrenceRule) => rule is Extract;