import { Agent, AgentMetadata, TargetPlatform } from './Agent'; export declare class AgentManager { private projectRoot; /** Legacy Copilot agents dir — kept for backward compat with callers that read it. */ private agentsDir; private platforms; private frameworkVersion; private installedAgentsCache; constructor(projectRoot: string, agentsDir?: string, platforms?: TargetPlatform[], frameworkVersion?: string); /** * Initialize required directories for all configured platforms. */ initialize(): Promise; /** * Install an agent across all configured platforms. * Returns the map of { platform → written file path }. */ installAgent(agent: Agent, force?: boolean): Promise>; /** * Remove an agent from all platforms. */ removeAgent(name: string): Promise; /** * List installed agents by scanning the primary Copilot agents directory. * Falls back to Open Plugins agents dir if the Copilot dir is absent. */ listInstalled(): Promise; /** * Check if an agent is installed (checks primary Copilot location). */ isInstalled(name: string): Promise; /** * Parse agent metadata from an .agent.md file using gray-matter. */ private parseAgentMetadata; /** * Load all agents currently in the cache (used for AGENTS.md regeneration). * When cache is cold (e.g. after restart), falls back to stubs from disk metadata. */ private loadCachedAgents; /** Returns the primary Copilot agents directory path. */ getAgentsDir(): string; /** Returns configured target platforms. */ getPlatforms(): TargetPlatform[]; } //# sourceMappingURL=AgentManager.d.ts.map