export interface ContextTerm {
    name: string;
    meaning: string;
    aliases?: string[];
    related?: string[];
}
export interface ContextConvention {
    name: string;
    description: string;
}
export interface ContextDocument {
    project: string;
    purpose: string;
    terms: ContextTerm[];
    conventions: ContextConvention[];
    openQuestions: string[];
}
export interface ContextWriteResult {
    path: string;
    changed: boolean;
    addedTerms: string[];
    skippedTerms: string[];
}
export declare const CONTEXT_FILE_NAME = "CONTEXT.md";
export declare function createContextScaffold(projectName: string): string;
export declare function parseContextDocument(markdown: string): ContextDocument;
export declare function getContextPath(projectRoot: string): string;
export declare function ensureContextScaffold(projectRoot: string, projectName: string): {
    path: string;
    created: boolean;
};
export declare function mergeAcceptedContextTerms(markdown: string, terms: readonly ContextTerm[]): {
    markdown: string;
    addedTerms: string[];
    skippedTerms: string[];
};
export declare function writeAcceptedContextTerms(projectRoot: string, projectName: string, terms: readonly ContextTerm[]): ContextWriteResult;
export declare function findRelevantContextTerms(document: ContextDocument, query: string, limit?: number): ContextTerm[];
export declare function renderContextTerms(terms: readonly ContextTerm[]): string | undefined;
export declare function readContextDocument(projectRoot: string): ContextDocument | undefined;
//# sourceMappingURL=context-format.d.ts.map