import { StoreState } from "../../../Store"; import { Mask, MaskServer, Commands, CommandServer } from "../../../shared"; export declare const intervalNumMap: State.IntervalNumMap; export declare const intervalStrMap: State.IntervalStrMap; export declare namespace State { type INTERVAL_STR_1_MINUTE = "1 minute"; type INTERVAL_STR_15_MINUTES = "15 minutes"; type INTERVAL_STR_30_MINUTES = "30 minutes"; type INTERVAL_STR_45_MINUTES = "45 minutes"; type INTERVAL_STR_60_MINUTES = "60 minutes"; type INTERVAL_STR_1_DAY = "1 day"; type INTERVAL_STR_1_WEEK = "1 week"; type INTERVAL_NUM_60 = 60; type INTERVAL_NUM_900 = 900; type INTERVAL_NUM_1800 = 1800; type INTERVAL_NUM_2700 = 2700; type INTERVAL_NUM_3600 = 3600; type INTERVAL_NUM_86400 = 86400; type INTERVAL_NUM_604800 = 604800; type INTERVALS_STR = INTERVAL_STR_1_MINUTE | INTERVAL_STR_15_MINUTES | INTERVAL_STR_30_MINUTES | INTERVAL_STR_45_MINUTES | INTERVAL_STR_60_MINUTES | INTERVAL_STR_1_DAY | INTERVAL_STR_1_WEEK; type INTERVALS_NUM = INTERVAL_NUM_60 | INTERVAL_NUM_900 | INTERVAL_NUM_1800 | INTERVAL_NUM_2700 | INTERVAL_NUM_3600 | INTERVAL_NUM_86400 | INTERVAL_NUM_604800; type IntervalNumMap = { [key in INTERVALS_NUM]: INTERVALS_STR; }; type IntervalStrMap = { [key in INTERVALS_STR]: INTERVALS_NUM; }; interface Timer { label: string; interval: INTERVALS_STR; startDate: string; startTime: string; cmds: Commands; } interface TimerServer { interval: INTERVALS_NUM; start: number; cmds: CommandServer[]; } type Data = { timers: Timer[]; newTimer: Timer; }; type DataServer = { [x: string]: TimerServer; }; type ServerResponse = { schedule: DataServer; }; type ServerRequest = Partial<{ [x: string]: Partial; }>; interface Props extends StoreState { } }