/** * 返回全局根目录。env `DB_GLOBAL_DIR` 覆盖默认值。 * Windows: %USERPROFILE%\.universal-db-mcp * macOS/Linux: ~/.universal-db-mcp */ export declare function getGlobalDir(): string; /** * v5.0.0: 确保全局根目录存在。ProfileStore.init 之前调用。 */ export declare function ensureGlobalDir(): void; /** profiles.db — 全局 profile 注册表 */ export declare function getProfilesDbPath(): string; /** * v5.0.0: 确保某个 profile 的子目录存在 ~/.universal-db-mcp//。 * save_template / recordQuery / persistPlan 都需要在打开 SQLite 前调用, * 否则 better-sqlite3 会报 "unable to open database file"。 */ export declare function ensureProfileDir(profileName: string): void; /** * v5.0.0: 删除某个 profile 的子目录 ~/.universal-db-mcp//。 * 由 ProfileManager.deleteProfile / importProfiles(mode='replace') 调用, * 清理 templates.db / history.db / plans.db 等 profile-scoped 数据。 * 目录不存在时静默忽略(已经清过了)。 */ export declare function removeProfileDir(profileName: string): void; /** * profile-scoped DB 路径(history/templates/plans)。调用前会自动确保子目录存在。 * @param profileName profile 名(必须满足 /^[a-zA-Z0-9_-]+$/,save_profile 已校验) * @param kind 'history' | 'templates' | 'plans' */ export declare function getProfileDbPath(profileName: string, kind: 'history' | 'templates' | 'plans'): string; //# sourceMappingURL=global-paths.d.ts.map