/** * Read the live scheduler PID, or null when the file is missing/unparseable or * the named process is dead (stale file is removed as a side-effect). */ export declare function readSchedulerPid(workspace?: string): number | null; /** * Try to acquire the scheduler lock for the current process. Returns * `{ acquired: true }` after writing our PID, or `{ acquired: false, heldBy }` * when another live scheduler already holds it (caller should skip cron * registration to avoid double-firing). */ export declare function acquireSchedulerLock(workspace?: string): { acquired: boolean; heldBy?: number; }; /** Remove the lock if it points at the current process. Idempotent. */ export declare function clearSchedulerPid(workspace?: string): void;