/**
 * Instruction File Merger - Smart CLAUDE.md/AGENTS.md merge
 * Updates SW sections, preserves user content
 */
export type TemplateType = 'claude' | 'agents';
export interface TemplateSection {
    id: string;
    order: number;
    required: boolean;
    content: string;
}
export interface MergeResult {
    content: string;
    action: 'created' | 'merged' | 'preserved';
    updated: string[];
    added: string[];
    preserved: number;
    warnings: string[];
}
export declare function mergeInstructionFile(existing: string | null, secs: TemplateSection[], type: TemplateType, ver: string, name: string): MergeResult;
/**
 * Strip all SW-managed sections from an instruction file, returning only user content.
 * Returns null if no user content remains (file was 100% SW-managed or empty).
 */
export declare function stripSwSections(content: string): string | null;
export declare function parseTemplateSections(content: string): TemplateSection[];
export declare function getPackageVersion(): string;
//# sourceMappingURL=instruction-file-merger.d.ts.map