export declare const LOCK_FILENAME = ".aidev.lock";
export declare function lockfilePath(cwd: string): string;
/** Returns true if the given PID corresponds to a running process. */
export declare function isProcessAlive(pid: number): boolean;
/**
 * Read the PID stored in the lock file.
 * Returns null if the file does not exist or its content is not a valid integer.
 */
export declare function readLock(cwd: string): number | null;
/**
 * Try to acquire the lock for `cwd`.
 * Returns true on success, false if another live process already holds it.
 */
export declare function acquireLock(cwd: string): boolean;
/** Remove the lock file for `cwd`. Safe to call even if file is absent. */
export declare function releaseLock(cwd: string): void;
/**
 * Stop the process that holds the lock for `cwd`.
 * Returns 'killed' | 'not-running' | 'no-lock'.
 */
export type StopResult = 'killed' | 'not-running' | 'no-lock';
export declare function stopProcess(cwd: string): StopResult;
//# sourceMappingURL=lockfile.d.ts.map