import type { CronJob } from "shared";
/**
 * Initialize the scheduler: load all agents, load their cron jobs,
 * and schedule active ones.
 */
export declare function initScheduler(): void;
/**
 * Schedule a single cron job. If a job with the same ID is already scheduled,
 * it is cancelled first.
 *
 * Returns true if the job was scheduled successfully.
 */
export declare function scheduleJob(alias: string, job: CronJob): boolean;
/**
 * Cancel a scheduled cron job.
 */
export declare function cancelJob(jobId: string): void;
/**
 * Pause a running job (stop execution but keep in map for resume).
 */
export declare function pauseJob(jobId: string): void;
/**
 * Resume a paused job.
 */
export declare function resumeJob(jobId: string): void;
/**
 * Cancel all jobs for a specific agent (used when agent is deleted).
 */
export declare function cancelAllJobsForAgent(alias: string): void;
/**
 * Graceful shutdown: stop all scheduled tasks.
 */
export declare function shutdownScheduler(): void;
//# sourceMappingURL=cron-scheduler.d.ts.map