type TaskPayload = { timestamp: Date; lastTimestamp?: Date; timezone: string; }; type TaskContext = { retriesLeft: number; }; type TaskArgs = { id: string; name: string; cron: string; maxDuration?: number; retries?: number; run: (payload: TaskPayload, tools: { ctx: TaskContext; }) => Promise | void; }; export declare class Schedules { private lastRunTimestamps; private Tasks; task(args: TaskArgs): void; run(taskId: string): Promise; private runWithRetry; toJSON(): { id: string; name: string; cron: string; maxDuration: number | undefined; retries: number | undefined; }[]; } export declare const schedules: Schedules; export {};