/** * Cron expression parser for standard 5-field cron syntax. * * Format: minute hour day-of-month month day-of-week * * Supported syntax: * - `*` - any value * - `N` - specific value * - `N-M` - range from N to M (inclusive) * - `N,M,O` - list of values * - `*\/N` or `N/M` - step values (every N starting at 0, or every M starting at N) */ export interface CronSchedule { minute: number[]; hour: number[]; dayOfMonth: number[]; month: number[]; dayOfWeek: number[]; } /** * Parse a cron expression into a schedule object. * * @param expression - Standard 5-field cron expression (minute hour day month weekday) * @returns Parsed schedule with arrays of valid values for each field * @throws Error if the expression is invalid */ export declare function parseCron(expression: string): CronSchedule; /** * Check if a schedule should run at the given date/time. * * @param schedule - Parsed cron schedule * @param at - Date to check (defaults to now) * @returns True if the schedule matches the given time */ export declare function shouldRunAt(schedule: CronSchedule, at?: Date): boolean; /** * Calculate the next run time after a given date. * * @param schedule - Parsed cron schedule * @param after - Start searching from this date (defaults to now) * @returns The next date/time when the schedule will run */ export declare function nextRun(schedule: CronSchedule, after?: Date): Date; //# sourceMappingURL=cron.d.ts.map