/** * Pid file management for the simulator. * * One sim process at a time per project. Long-lived commands (`mikro sim dev`, * `mikro sim repl`) claim the pid file and kill any predecessor. Short-lived * commands (`mikro sim deploy`, `mikro sim test`, etc.) check the pid file * and refuse to run if a sim is already alive — they would race on sim-fs * writes or yank files out from under the running process. */ export declare function isAlive(pid: number): boolean; export declare function readPid(mikroDir: string): number | null; export declare function clearPid(mikroDir: string): void; export declare class SimAlreadyRunningError extends Error { pid: number; constructor(pid: number); } /** * Refuse to proceed if a sim is already running. Used by short-lived commands * (deploy, test, env, profile, clean, reset). */ export declare function checkPid(mikroDir: string): void; /** * Claim the pid file for this process. If a predecessor is alive, kill it * first (SIGTERM, then SIGKILL after a short grace period). Registers exit * cleanup to remove the file on normal termination. * * Used by long-lived commands (dev, repl). */ export declare function claimPid(mikroDir: string): Promise; //# sourceMappingURL=simPid.d.ts.map