/** * Minimal cron parser / evaluator. Supports the subset used in * config/cortex.yaml adapter schedules: * * * any * N exact value * N,M,O list * A-B range (inclusive) * *\/N step (every N) * * Fields: minute hour dayOfMonth month dayOfWeek * minute 0-59 * hour 0-23 * dayOfMonth 1-31 * month 1-12 * dayOfWeek 0-6 (0 = Sunday) * * Month and day-of-week as names aren't supported; they're never used * in adapter schedules so no point. */ export interface CronSchedule { minute: (n: number) => boolean; hour: (n: number) => boolean; dayOfMonth: (n: number) => boolean; month: (n: number) => boolean; dayOfWeek: (n: number) => boolean; source: string; } export declare function parseCron(expr: string): CronSchedule; /** * Return the next time-of-next-firing strictly after `from`. Walks * minute-by-minute; every adapter runs once per match. * * Upper bound of 366 * 24 * 60 iterations before we bail — catches * truly unmatchable schedules (e.g. dayOfMonth=31 month=2). */ export declare function nextFireAfter(schedule: CronSchedule, from: Date): Date; //# sourceMappingURL=cron.d.ts.map