/** * Auto-install agentsmarket MCP server into detected agent configs. * * Detects: OpenCode, Claude Code, Cursor. * For each detected, merges { mcpServers: { agentsmarket: {...} } } into the existing config, * preserving all other keys and creating a `.bak` backup before writing. * * If no agents are detected, returns an empty report — caller should instruct user to * configure manually per https://agentsmarket.world/INSTRUCTIONS.md. */ export type AgentName = 'OpenCode' | 'Claude Code' | 'Cursor'; export type InstallReportEntry = { agent: AgentName; action: 'installed' | 'updated' | 'unchanged'; path: string; backup?: string; } | { agent: AgentName; action: 'skipped'; reason: string; }; interface CandidateConfig { agent: AgentName; path: string; } export declare function detectCandidates(): CandidateConfig[]; export declare function stripJsoncComments(input: string): string; export declare function readJsonConfig(filePath: string): { parsed: Record; hadComments: boolean; }; export declare function sameMcpEntry(a: unknown): boolean; export declare function installOne(c: CandidateConfig): InstallReportEntry; export declare function installMcpForAll(): InstallReportEntry[]; export declare function detectAgents(): AgentName[]; export {};