/** * Minimal 5-field cron expression parser + next-run computation. * * Supports the standard crontab syntax: "minute hour day-of-month month day-of-week". * Supported tokens per field: * - star → all values * - "n" → single value (e.g. "5") * - "a-b" → range (e.g. "1-5") * - "a,b,c" → list (comma-separated values/ranges) * - star/n → step (every n within the field's range) * - "a-b/n" → stepped range * * Day-of-week: 0-6 (0 = Sunday) and 7 is also accepted as Sunday. * * NOT supported: names (JAN, MON), @reboot, @daily, macros, seconds field, L/W/#. * * This is deliberately small — enough to express "every 30 min", "hourly at :15", * "daily at 3am", "weekdays at 9am". For anything more complex, use an interval. */ export interface ParsedCron { minute: number[]; hour: number[]; dom: number[]; month: number[]; dow: number[]; /** Original expression, for logging. */ raw: string; } /** * Parse a 5-field cron expression. Throws on malformed input. */ export declare function parseCron(expr: string): ParsedCron; /** * Compute the next firing time >= `afterMs` (ms-epoch) for a parsed cron. * Walks forward minute-by-minute up to ~4 years; throws if no match in that * window (indicates an impossible expression, e.g. Feb 30). */ export declare function nextCronRun(parsed: ParsedCron, afterMs: number): number; //# sourceMappingURL=scheduler-cron.d.ts.map