import type { AgentFileSource, AgentInstallation, ManagedArtifactState } from './config.js'; import { type ExtensionManifest, type ExtensionAgentFile } from './extensions.js'; export type SkillUpdateStatus = 'changed' | 'unchanged' | 'skipped' | 'removed'; export interface SkillUpdateEntry { skill: string; status: SkillUpdateStatus; reason: string; } export interface UpdateSkillsResult { installedSkills: string[]; entries: SkillUpdateEntry[]; } export interface SubagentUpdateEntry { subagent: string; status: SkillUpdateStatus; reason: string; } export interface UpdateSubagentsResult { installedAgentFiles: string[]; agentFileSources: Record; entries: SubagentUpdateEntry[]; } export interface ConfigFileUpdateEntry { configFile: string; status: SkillUpdateStatus; reason: string; } export interface UpdateConfigFilesResult { installedConfigFiles: string[]; entries: ConfigFileUpdateEntry[]; } export interface UpdateSkillsOptions { excludeSkills?: string[]; force?: boolean; } export interface InstallOptions { projectDir: string; skillsDir: string; skills: string[]; agentId: string; } export interface InstallSubagentsOptions { projectDir: string; agentId?: string; agentsDir?: string; subagentsDir?: string; } export interface InstallConfigFilesOptions { projectDir: string; agentId: string; configFiles: string[]; installedConfigFiles?: string[]; } interface ResolvedAgentFilePaths { sourceFile: string; targetFile: string; sourceRelPath: string; targetRelPath: string; } interface ResolvedConfigFilePaths { sourceFile: string; targetFile: string; relPath: string; } export declare function resolveInstalledAgentFileTargetPath(projectDir: string, agentsDir: string, relPath: string): string; export declare function resolveManagedConfigFilePaths(projectDir: string, agentId: string, relPath: string): ResolvedConfigFilePaths; export declare function resolveManagedSubagentPaths(projectDir: string, agentId: string, agentsDir: string, relPath: string): ResolvedAgentFilePaths; export declare function buildManagedSkillsState(projectDir: string, agentInstallation: AgentInstallation, baseSkills: string[]): Promise>; export declare function getAvailableSubagents(agentId?: string): Promise; export declare function buildBundledAgentFileSources(relPaths: string[]): Record; export declare function buildExtensionAgentFileSources(manifest: ExtensionManifest): Map>; export declare function buildManagedAgentFilesState(projectDir: string, agentInstallation: AgentInstallation, installedAgentFiles: string[], options?: { preserveExistingOnMissingSource?: boolean; warn?: (message: string) => void; }): Promise>; export declare function buildManagedConfigFilesState(projectDir: string, agentInstallation: AgentInstallation, installedConfigFiles: string[]): Promise>; export declare function buildManagedSubagentsState(projectDir: string, agentInstallation: AgentInstallation, installedSubagents: string[]): Promise>; export declare function rebuildManagedAgentFilesForAgents(projectDir: string, agents: AgentInstallation[], options?: { preserveExistingOnMissingSource?: boolean; warn?: (message: string) => void; }): Promise; export declare function installSkills(options: InstallOptions): Promise; export declare function installSubagents(options: InstallSubagentsOptions): Promise; export declare function installConfigFiles(options: InstallConfigFilesOptions): Promise; export declare function partitionSkills(skills: string[]): { base: string[]; custom: string[]; }; export declare function getAvailableSkills(): Promise; export declare function installExtensionSkills(projectDir: string, agentInstallation: AgentInstallation, extensionDir: string, skillPaths: string[], nameOverrides?: Record): Promise; export declare function removeExtensionSkills(projectDir: string, agentInstallation: AgentInstallation, skillPaths: string[]): Promise; export declare function updateSkills(agentInstallation: AgentInstallation, projectDir: string, options?: UpdateSkillsOptions): Promise; export declare function updateSubagents(agentInstallation: AgentInstallation, projectDir: string, options?: UpdateSkillsOptions): Promise; export declare function updateConfigFiles(agentInstallation: AgentInstallation, projectDir: string, options?: UpdateSkillsOptions): Promise; export declare class AgentFileInstallError extends Error { installedTargets: string[]; constructor(message: string, installedTargets: string[]); } export declare function installExtensionAgentFiles(projectDir: string, agentInstallation: AgentInstallation, extensionDir: string, agentFiles: ExtensionAgentFile[]): Promise; export declare function removeExtensionAgentFiles(projectDir: string, agentInstallation: AgentInstallation, targets: string[]): Promise; export {}; //# sourceMappingURL=installer.d.ts.map