import { type AgentId } from '../agents/registry'; import { type ContentSkillEntry } from '../config/contentConfig'; import { type ContentSkillSetLockEntry } from '../lib/lock'; import type { FeatureResult } from '../lib/schema'; export declare const CONTENT_AGENT_IDS: readonly ["claude-code", "codex", "cursor", "copilot"]; export type ContentAgentId = typeof CONTENT_AGENT_IDS[number]; export declare const NO_AGENTS_DETECTED_MESSAGE = "no installed agents detected \u2014 run `mswai init` first to set up agent files"; export type ContentItemAction = 'installed' | 'upgraded' | 'repaired' | 'noop' | 'dry-run' | 'failed'; /** Outcome of one (skill set, agent) install. */ export interface ContentInstallItem { ok: boolean; message: string; action: ContentItemAction; agent: ContentAgentId; skill: string; version: string | null; latest: string; } export declare function isContentAgentId(value: string): value is ContentAgentId; export declare function compareVersions(a: string, b: string): number; export declare function resolveContentSource(source: string): string; export declare function contentFilesExist(cwd: string, agent: AgentId, entry: ContentSkillEntry): boolean; export declare function installedContentVersion(cwd: string, agent: AgentId, entry: ContentSkillEntry, lockEntry: ContentSkillSetLockEntry | undefined): string | null; /** Agents a lock entry was installed for, limited to the ids content supports. */ export declare function lockedContentAgents(lockEntry: ContentSkillSetLockEntry): ContentAgentId[]; export interface InstallContentSkillOptions { cwd: string; entry: ContentSkillEntry; agent: ContentAgentId; quiet: boolean; dryRun?: boolean; } export declare function installContentSkill(opts: InstallContentSkillOptions): ContentInstallItem; /** * Summarise install items as the `content` feature. A single item keeps its * fields at the top level; several items are listed under `items`. */ export declare function buildContentFeature(items: ContentInstallItem[]): FeatureResult; /** * Refresh every content skill set recorded in the lock for the agents it was * installed for. `agents` narrows the recorded agents when given. */ export declare function refreshInstalledContentSkills(opts: { cwd: string; quiet: boolean; dryRun: boolean; agents?: AgentId[]; }): ContentInstallItem[]; export declare function contentCommand(args: string[]): Promise;