export interface LockPayload {
    pid: number;
    port: number;
    startedAt: string;
    version: string;
}
export declare const LOCK_PATH: string;
export declare function readLock(): LockPayload | null;
export declare function isProcessAlive(pid: number): boolean;
export declare function acquireLock(pid: number, port: number, version: string): void;
export declare function releaseLock(): void;
/**
 * 检查已有 console 是否活着。
 * @returns payload if another console is running, null otherwise
 */
export declare function detectRunningConsole(): LockPayload | null;
//# sourceMappingURL=lockFile.d.ts.map