/** * CLAUDE.md Smart Merge Utility * * Intelligently merges Fortress Zero-Defect Framework protocols into existing CLAUDE.md files * while preserving all user content and structure. */ export interface MergeResult { success: boolean; merged: boolean; backupCreated: boolean; backupPath?: string; sectionsAdded: string[]; warnings: string[]; finalContent: string; } export interface FortressConfig { project: { name: string; type: string; framework?: string; }; fortress: { quality_level: string; validation_layers?: any; }; domain?: { compliance_requirements?: string[]; }; } export declare class ClaudeMergeUtility { /** * Main merge function - intelligently merges Fortress sections into existing CLAUDE.md */ static mergeClaudeMd(existingPath: string, config: FortressConfig, options?: { createBackup?: boolean; }): Promise; /** * Detect if Fortress section already exists in CLAUDE.md */ private static hasFortressSection; /** * Perform the actual merge - insert Fortress sections at appropriate locations */ private static performMerge; /** * Generate Fortress-specific section to be merged into CLAUDE.md */ private static generateFortressSection; /** * Get quality threshold percentage based on quality level */ private static getQualityThreshold; /** * Generate full CLAUDE.md from scratch (for new projects or empty files) */ private static generateFullClaudeMd; /** * Get list of sections that were added during merge */ private static getSectionsAdded; /** * Analyze existing CLAUDE.md structure */ static analyzeExistingClaudeMd(filePath: string): { exists: boolean; isEmpty: boolean; hasFortressSection: boolean; sectionCount: number; lineCount: number; }; } //# sourceMappingURL=claude-merge-utility.d.ts.map