/** * Tracks whether OMX currently holds Herdr `omx:runtime` authority for a pane, * so release only fires when no OMX workflow remains active, and so a stale * authority left by a crashed process can be reconciled on the next * session-start. */ export interface AuthorityRecord { pane_id: string; source: string; owner_pid: number; session_id?: string; acquired_at: string; updated_at: string; } export interface AuthorityStoreOptions { baseDir?: string; } export declare function readAuthority(options?: AuthorityStoreOptions): AuthorityRecord | null; export declare function recordAuthority(record: Omit & Partial>, options?: AuthorityStoreOptions): void; export declare function clearAuthority(options?: AuthorityStoreOptions): void; /** * A liveness probe for the current owner process. Injectable for tests; the * default checks whether the recorded pid is alive via `process.kill(pid, 0)`. */ export type PidLivenessProbe = (pid: number) => boolean; /** * Crash reconciliation: if an authority record exists but its owner process is * no longer alive, clear it so Herdr returns to normal screen detection. Call * on session-start. Returns true when a stale record was cleared. */ export declare function reconcileStaleAuthority(options?: AuthorityStoreOptions & { pidAlive?: PidLivenessProbe; }): boolean; //# sourceMappingURL=authority.d.ts.map