/** * Shared process-level helpers. */ /** * A portable-enough process identity for platforms where `ps` is available. * The PID alone is deliberately not used for ownership recovery because it * can be reused by an unrelated process. */ export interface ProcessIdentity { readonly startTime: string; } /** Resolve the current process identity once; 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; export declare function isProcessAlive(ownerPid: number): boolean; export declare function isStaleRunningTask(ownerPid: number | undefined): boolean; //# sourceMappingURL=process.d.ts.map