export interface RefreshableJobMeta { id?: string; status?: string; pid?: number | null; pid_starttime?: number | null; pgid?: number | null; exit_code?: number | null; ended_at?: string | null; } /** True only if pid exists, starttime matches, and pgid matches. */ export declare function assertJobPidAlive(meta: RefreshableJobMeta): boolean; /** * If job is marked running/paused but the process is gone (or stolen), * derive outcome from the `exit_code` file and persist meta. Returns the * (possibly updated) meta object. */ export declare function refreshJobStatus(root: string, meta: T): Promise; /** Read meta.json then refresh status. */ export declare function readAndRefreshMeta(root: string, id: string): Promise; //# sourceMappingURL=bgjob-status.d.ts.map