/** 添加 CoHub 到 opencode.json 的 plugin 数组(宿主配置:解析失败中止 + 写入前备份) */ export declare function addPluginToOpenCodeConfig(version: string): { success: boolean; message: string; }; /** 添加 CoHub 到 tui.json 的 plugin 数组(宿主配置:解析失败中止 + 写入前备份) */ export declare function addPluginToTuiConfig(): { success: boolean; message: string; }; /** Agent 配置已迁移到插件运行时管理,不再写入 opencode.json * 参照 oh-my-opencode-slim 架构:agent 定义由 config hook 唯一管理 * 避免 opencode.json 的空 agent 定义覆盖插件注入的 model/variant */ export declare function registerCoHubAgents(): { success: boolean; message: string; }; /** 写入默认配置模板(如文件不存在),智能匹配 opencode.json 中的 provider/model */ export declare function writeDefaultConfig(): { success: boolean; message: string; }; /** 卸载 CoHub——精确清理,不碰其他插件数据 */ export declare function uninstallCoHub(): { success: boolean; messages: string[]; }; /** 将 cohub 安装到 ~/.cache/opencode/packages/oh-my-opencode-cohub/(含完整 node_modules) */ export declare function installToCacheDir(version: string): { success: boolean; message: string; }; //# sourceMappingURL=config-io.d.ts.map