/** * 获取 OpenClaw 数据目录 * - 优先使用环境变量 OPENCLAW_STATE_DIR * - Windows 下默认使用 %APPDATA%/.openclaw * - macOS/Linux 下默认使用 ~/.openclaw */ export declare function getOpenClawDir(): string; /** * 获取 OpenClaw 配置文件路径 */ export declare function getConfigPath(): string; /** * 获取老版本 OpenClaw 的插件扩展目录(< 2026.5) */ export declare function getExtensionsDir(): string; /** * 获取新版本 OpenClaw 的 npm 安装根目录(>= 2026.5) * 插件以 npm 包的形式安装在 ~/.openclaw/npm/node_modules 下 */ export declare function getNpmRootDir(): string; /** * 读取 OpenClaw 配置文件 */ export declare function readConfig(): Promise; /** * 写入 OpenClaw 配置文件 */ export declare function writeConfig(config: any): Promise; //# sourceMappingURL=config.d.ts.map