/** * Shared process-level helpers. */ /** * A process identity based on the operating system's process start time. * The PID alone is deliberately not used for ownership recovery because it * can be reused by an unrelated process. */ export interface ProcessIdentity { /** Opaque identifier; Unix values include the normalized format version. */ readonly startTime: string; } /** Cache a successful current-process lookup; its start time cannot change. */ export declare function getSelfProcessIdentity(): ProcessIdentity | undefined; export declare function getProcessIdentity(pid: number): ProcessIdentity | undefined; /** * Returns true only when both identities are known and equal. Unknown identity * is never treated as a match, so callers remain fail-closed. */ export declare function sameProcessIdentity(first: ProcessIdentity | undefined, second: ProcessIdentity | undefined): boolean; /** Invalid or legacy timestamps cannot prove PID reuse. */ export declare function hasProcessIdentityMismatch(recorded: ProcessIdentity | undefined, current: ProcessIdentity | undefined): boolean; export declare function isProcessAlive(ownerPid: number): boolean; export declare function isStaleRunningTask(ownerPid: number | undefined, ownerStartTime?: string): boolean; //# sourceMappingURL=process.d.ts.map