import type { CronJob, CronTaskRunCheckpoint, CronTaskRunCheckpointSummary, CronTaskRunCheckpointTrigger } from "../types.js";
export declare function resolveCronJobRunLeaseMs(timeoutMs: number | undefined): number;
export declare function hasActiveCronJobRun(job: CronJob): boolean;
export declare function reserveCronJobRunLease(job: CronJob, nowMs: number, opts: {
    trigger: CronTaskRunCheckpointTrigger;
    leaseMs: number;
}): CronTaskRunCheckpoint;
export declare function completeCronJobRunLease(job: CronJob, completedAtMs: number): CronTaskRunCheckpointSummary | undefined;
export declare function discardCronJobRunLease(job: CronJob): void;
export declare function isCronJobRunLeaseExpired(params: {
    job: CronJob;
    nowMs: number;
    legacyStuckMs: number;
}): boolean;
export declare function recoverCronJobRunLease(job: CronJob, nowMs: number, reason: string): CronTaskRunCheckpointSummary | undefined;
