/** * Is the process that wrote a record still running? * * Signal 0 performs the permission and existence checks without delivering anything. EPERM means * the process exists but belongs to someone else — alive, as far as this question goes. Works on * Windows too, where Node maps it onto an existence check. * * Its own module because three unrelated records ask it: `.bitmagic/dev.json` (project/dev-handle), * `.bitmagic/jobs/` (project/jobs) and the machine-wide locks in `~/.bitmagic/locks/` * (machine-lock). The lock cannot import dev-handle for it — dev-handle reads the port registry, * which takes the lock, and that would be a cycle. */ export declare function isProcessAlive(pid: number): boolean;