import { ITimeWheel, TaskCallback } from '../types'; export interface CronExpression { second?: string; minute?: string; hour?: string; dayOfMonth?: string; month?: string; dayOfWeek?: string; } export interface CronTaskHandle { taskId: string; nextExecution: Date; cancel: () => void; } export declare class CronAdapter { private timeWheel; private handles; constructor(timeWheel: ITimeWheel); schedule(expression: string | CronExpression, callback: TaskCallback): CronTaskHandle; private reschedule; private parseExpression; private calculateNextRun; private parseField; cancelAll(): void; getScheduledTasks(): CronTaskHandle[]; } //# sourceMappingURL=CronAdapter.d.ts.map