import type { ScheduleJob } from "../types.js"; export declare const BLOCK_BEGIN = "# BEGIN omp-schedule"; export declare const BLOCK_END = "# END omp-schedule"; /** The crontab command line for a job (without the id marker). */ export declare function crontabEntryLine(job: ScheduleJob, logsDir: string, stateRoot: string): string; /** Parse the managed block of an existing crontab into an ordered id→line map. */ export declare function parseManagedBlock(existing: string): Map; /** Pure: add or replace the entry for `id` in the managed block. */ export declare function applyCrontabBlock(existing: string, id: string, entryLine: string): string; /** Pure: remove the entry for `id`; drops the block markers when it empties. */ export declare function removeCrontabEntry(existing: string, id: string): string; export declare function hasCrontabEntry(existing: string, id: string): boolean; export declare function readCrontab(): string; export declare function writeCrontab(content: string): void; export declare function installCrontab(job: ScheduleJob, logsDir: string, stateRoot: string): string; export declare function uninstallCrontab(id: string): void; export declare function statusCrontab(id: string): boolean;