import type { ServiceHost } from "../service-host.js"; export declare function controlDirectory(root: string): string; /** Windows 前台/候选 manager 没有 Unix socket;原生服务模式另用反向命名管道。 */ export declare function supportsFilesystemControlSocket(platform?: NodeJS.Platform): platform is "aix" | "android" | "darwin" | "freebsd" | "haiku" | "linux" | "openbsd" | "sunos" | "cygwin" | "netbsd"; export declare function controlSocket(root: string): string; /** * 只支持提供可靠 SQLite 文件锁的本地卷,不支持 NFS/多主机共享工作区。 * 专用数据库长期保持写事务,崩溃由 OS 释放锁;不得删除或替换数据库文件。 */ export declare function acquireControlWorkspace(root: string, host?: ServiceHost): () => void; /** 冷恢复只探测旧 leader 与 POSIX 进程组,绝不向历史 PID 发送终止信号。 */ export declare function gatewayProcessExists(pid: number): boolean; /** 网关只接收配置快照,管理认证从不进入该文件。 */ export declare function prepareGatewayWorkspace(root: string, runtimeRoot?: string): { configPath: string; workspacePath: string; selection: { applications: string[]; adapters: string[]; protocols: string[]; }; configVersion: string; dependencyVersion: string; entrypoint: string; runtimeRoot: string; }; //# sourceMappingURL=workspace.d.ts.map