import type { ToolManager } from "./managers/tool-manager.js"; import type { HookManager } from "./managers/hook-manager.js"; import type { SkillRegistry } from "./skill.js"; import type { AgentRegistry } from "./agent-registry.js"; import type { AgentPluginPackage, AppliedPluginPackage } from "./types/plugin-package.js"; export interface ApplyPluginPackageTargets { hookManager?: HookManager; toolManager?: ToolManager; skillRegistry?: SkillRegistry; /** P1 M2: 存在时 + declaration.systemPrompt 存在时,applyPluginPackage 真注册 agent 到 AgentRegistry */ agentRegistry?: AgentRegistry; } export declare function applyPluginPackage(pluginPackage: AgentPluginPackage, targets: ApplyPluginPackageTargets): Promise; /** * 卸载 plugin 注册的内容(tools/skills)。best-effort:hooks 不卸载(HookManager * 无 off API,后续补)。基于 applyPluginPackage 返回的 AppliedPluginPackage 结果。 */ export declare function unapplyPluginPackage(applied: AppliedPluginPackage, targets: ApplyPluginPackageTargets): void;