/** `closedBy` on a record this module closed. */ export declare const STALE_RUN_CLOSED_BY = "liveness-check"; export type StaleRunCheck = /** Nothing to do: no record, not 'running', or it is this process's own. */ { outcome: 'none'; } /** The run is alive; `pid` is set only when its recorded pid AND start * identity prove it (a pre-#573 record's pid may be anyone's now). */ | { outcome: 'live'; pid?: number; } /** The record was stale and is now marked crashed. */ | { outcome: 'crashed'; run?: string; pid?: number; reason: string; }; /** Check one org's runtime.json and mark it crashed when its run is dead. * `by` names the command, for the audit line. */ export declare function reconcileStaleRun(cwd: string, org: string, by: string, now?: number): StaleRunCheck; /** reconcileStaleRun for every org in the project; returns the ones closed. */ export declare function reconcileAllStaleRuns(cwd: string, by: string): Array<{ org: string; } & Extract>; //# sourceMappingURL=org-stale-run.d.ts.map