/** * MCP profile tools (v2.18 + v3.2 lifecycle + v2.20 import/export) * * v2.18 (4 tools): save_profile / list_profiles / use_profile / get_global_schema * v2.20 (2 tools): export_profiles / import_profiles * v3.2 lifecycle (5 tools): get_profile / delete_profile / enable_profile / * disable_profile / disconnect_profile * * v3.2: all 11 wired into ToolRegistry under 'profiles' lazy group. */ import type { ProfileManager } from '../../core/profile-manager.js'; import type { ProfileInput } from '../../core/profile-manager.js'; import type { ProfileStore } from '../../core/profile-store.js'; /** * v5.0.0: 重命名自 buildSaveProfileHandler。create_profile 只 INSERT, * 已存在同名 profile 抛 UNIQUE 约束错误。要修改现有 profile 用 update_profile。 */ export declare function buildCreateProfileHandler(pm: ProfileManager): (args: ProfileInput) => Promise; /** * v5.0.0: Deprecated alias for buildCreateProfileHandler(). New code should use * buildCreateProfileHandler() to match the renamed tool name `create_profile`. */ export declare function buildSaveProfileHandler(pm: ProfileManager): (args: ProfileInput) => Promise; /** * v5.0.0: 新增工具。update_profile 只 UPDATE 已存在的 profile, * profile 不存在抛 'profile ... does not exist'。 * * 不允许改名(name 是更新键,不是设置项)。 */ export declare function buildUpdateProfileHandler(pm: ProfileManager): (args: ProfileInput) => Promise; export declare function buildListProfilesHandler(pm: ProfileManager): (args: { role?: string; tag?: string; enabled?: boolean; }) => Promise<{ profiles: import("../../core/profile-manager.js").Profile[]; }>; export declare function buildUseProfileHandler(pm: ProfileManager): (args: { name: string; recordToProject?: boolean; }) => Promise<{ name: string; type: string; role: import("../../core/profile-manager.js").ProfileRole; profileConfig: import("../../types/adapter.js").DbConfig; adapter: import("../../types/adapter.js").DbAdapter; service: import("../../core/database-service.js").DatabaseService; profileRecordHint: string | undefined; }>; export declare function buildGetGlobalSchemaHandler(pm: ProfileManager): () => Promise; export declare function buildExportProfilesHandler(pm: ProfileManager): (args: { format?: "yaml" | "json"; includeSecrets?: boolean; }) => Promise<{ content: string; }>; export declare function buildImportProfilesHandler(pm: ProfileManager): (args: { input: string; format?: "yaml" | "json"; mode?: "merge" | "replace"; dryRun?: boolean; }) => Promise; export declare function buildGetProfileHandler(pm: ProfileManager): (args: { name: string; }) => Promise<{ profile: import("../../core/profile-manager.js").Profile; }>; export declare function buildDeleteProfileHandler(pm: ProfileManager): (args: { name: string; confirm?: boolean; }) => Promise<{ deleted: boolean; }>; export declare function buildEnableProfileHandler(pm: ProfileManager, store: ProfileStore): (args: { name: string; }) => Promise<{ enabled: boolean; }>; export declare function buildDisableProfileHandler(pm: ProfileManager, store: ProfileStore): (args: { name: string; }) => Promise<{ enabled: boolean; }>; export declare function buildDisconnectProfileHandler(pm: ProfileManager): (args: { name: string; }) => Promise<{ disconnected: boolean; }>; export declare const PROFILE_TOOL_DESCRIPTIONS: { create_profile: string; update_profile: string; list_profiles: string; use_profile: string; get_global_schema: string; export_profiles: string; import_profiles: string; get_profile: string; delete_profile: string; enable_profile: string; disable_profile: string; disconnect_profile: string; }; //# sourceMappingURL=profile-tools.d.ts.map