/** * Existing Config Capture * * Functions for detecting and capturing existing Claude Code configurations * as a named profile during installation. */ /** * Represents the detected existing configuration */ export type ExistingConfig = { hasClaudeMd: boolean; hasManagedBlock: boolean; hasSkills: boolean; skillCount: number; hasAgents: boolean; agentCount: number; hasCommands: boolean; commandCount: number; }; /** * Detect existing Claude Code configuration * * Checks for: * - CLAUDE.md file (and whether it has a managed block) * - skills directory with SKILL.md files * - agents directory with .md files * - commands directory with .md files * * @param args - Configuration arguments * @param args.installDir - Installation directory * * @returns Detected config info, or null if no config found */ export declare const detectExistingConfig: (args: { installDir: string; }) => Promise; /** * Capture existing configuration as a named profile * * Creates a new profile in ~/.nori/profiles// containing: * - profile.json with metadata * - CLAUDE.md with managed block markers added * - skills/ directory (copied from ~/.claude/skills/) * - subagents/ directory (copied from ~/.claude/agents/) * - slashcommands/ directory (copied from ~/.claude/commands/) * * @param args - Configuration arguments * @param args.installDir - Installation directory * @param args.profileName - Name for the new profile */ export declare const captureExistingConfigAsProfile: (args: { installDir: string; profileName: string; }) => Promise; /** * Prompt user to capture existing configuration * * Displays what was detected and requires a profile name. * The user must provide a valid profile name or abort with Ctrl+C. * * @param args - Configuration arguments * @param args.existingConfig - Detected existing configuration * * @returns Profile name (always returns a valid name) */ export declare const promptForExistingConfigCapture: (args: { existingConfig: ExistingConfig; }) => Promise; //# sourceMappingURL=existingConfigCapture.d.ts.map