/** * Schedule */ export declare class Schedule { private fields; private _start; private _end; /** * days of the month */ private _dates; /** * months */ private _months; /** * days of the week */ private _days; /** * current cursor */ private _pointer; /** * 构造 * @param fields [[日..], [月..], [周..]] * @param _start 起始日期 * @param _end 终止日期 */ constructor(fields: number[][], _start: Date, _end: Date); _findNext(): Date; /** * fetch next data */ next(): { value: Date; done: boolean; }; /** * has next * @returns {boolean} */ hasNext(): boolean; } /** * 解析表达式,并获得合法的数字的列表,如合法的月份数 * * @param field 日期cron表达式中通过空格分割后的某一部分(日、月、周)的内容 * @param _constraints 取值约束,如日期为[1,31] * @returns number[] */ export declare function parseField(field: string, _constraints: number[]): number[]; /** * 解析表达式,并返回Schedule对象 * * @param expr cron表达式,形如: 日期 月份 周。例如:* * * 或 1,2,5-9 1-6 0-6 或 1/2 * * 等 * @param start 开始日期 * @param end 介绍日期 * @returns {*} */ export declare function parse(expr: string, start: Date, end: Date): Schedule;