export declare const SECTION_NAMES: readonly ["What This Is", "Architecture", "Conventions", "Key Decisions", "Known Gotchas", "Current State"];
export type SectionName = (typeof SECTION_NAMES)[number];
export interface ContextSection {
    name: SectionName;
    content: string;
}
export interface ParsedContext {
    title: string;
    sections: ContextSection[];
}
export interface ContextValidation {
    valid: boolean;
    missing: SectionName[];
    extra: string[];
}
/**
 * Parse CLAUDE.md into its 6 canonical sections.
 * Sections are split on `## ` headings. Content between the title (H1)
 * and the first H2 is ignored (it's the intro line).
 */
export declare function parseContext(filePath: string): ParsedContext;
export declare function parseContextString(raw: string): ParsedContext;
export declare function validateContext(parsed: ParsedContext): ContextValidation;
export declare function getSection(parsed: ParsedContext, name: SectionName): string | null;
export declare function updateSection(filePath: string, name: SectionName, newContent: string): void;
export declare function updateSectionString(raw: string, name: SectionName, newContent: string): string;
