/** * PID Lock Files * * File-based locks for exclusive operations that include the PID of the * process that holds the lock. Stale locks from crashed processes can be * detected (PID no longer running) and automatically cleaned. * * Lock files are stored in ~/.pluginator/recovery/locks/. * * @since v2.7.34 */ /** * Lock file content */ interface LockInfo { pid: number; operation: string; acquiredAt: string; hostname: string; } /** * Acquire a PID-based file lock for an operation. * Returns a release function, or throws if the lock is held by another running process. */ export declare function acquirePidLock(operation: string): { release: () => void; }; /** * List all stale locks (from crashed processes) */ export declare function listStaleLocks(): Array<{ operation: string; info: LockInfo; }>; /** * Clean all stale locks */ export declare function cleanStaleLocks(): number; export {}; //# sourceMappingURL=pid-lock.d.ts.map