/** * Cron parser and scheduling helpers. * * Five-field POSIX-style cron (minute hour day-of-month month day-of-week). * Supports wildcards (*), lists (a,b,c), ranges (a-b), steps (*\/n), and * Sunday-as-7 normalization. Minute granularity only. * * Extracted from daemon/server.ts so it can be shared with the boot loader * and exercised by focused tests. */ export declare function parseCronField(field: string, min: number, max: number): number[] | null; /** * Compute the next cron occurrence strictly after `fromTime` (defaults to * now). Returns `{isValid: false, nextRun: 0}` on malformed cron or if no * occurrence is found within four years. */ export declare function parseCron(cron: string, fromTime?: number): { isValid: boolean; nextRun: number; }; /** * Find the most recent cron occurrence strictly after `lastRunAt` and at or * before `now`. Returns `null` if no occurrence fits the window, the cron is * malformed, or `lastRunAt` is not in the past. * * Used at daemon boot: if a schedule was supposed to fire while the daemon * was down, this identifies the most recent missed occurrence so the caller * can trigger one catch-up run. Older missed occurrences are intentionally * dropped to avoid a flood of invocations after a long outage. * * Complexity: iterates backward minute-by-minute from `now` to `lastRunAt`, * bounded at 14 days. For typical schedules the first matching minute is * found within a few hundred iterations. */ export declare function computeMissedRun(cron: string, lastRunAt: number, now: number): number | null; //# sourceMappingURL=cron.d.ts.map