/** * Minimal cron expression parser and scheduler. * Replaces the unmaintained `later` package with Node built-ins. * * Supports 5-field (minute hour day-of-month month day-of-week) and * 6-field (with a leading seconds) expressions. Each field accepts * wildcard, step, single value, range, range-with-step and * comma-separated lists. All times are interpreted in local time, * matching the previous `later.date.localTime()` default. */ type CronField = 'second' | 'minute' | 'hour' | 'dayOfMonth' | 'month' | 'dayOfWeek'; type CronSchedule = Partial>>; /** * Parse a cron expression into a schedule of Sets. */ export declare const parseCron: (expression: string, useSeconds?: boolean) => CronSchedule; /** * Compute the next run date strictly after `from` that matches the schedule. */ export declare const getNextRun: (schedule: CronSchedule, from?: Date) => Date; /** * Run `callback` on `schedule` until the returned handle is cleared. */ export declare const setCronInterval: (callback: () => void, schedule: CronSchedule) => { clear: () => void; }; export {};