export type Importance = 'high' | 'medium' | 'low';
export interface MemorySection {
    title: string;
    body: string;
    importance: Importance;
    createdAt?: string;
    lastReferencedAt?: string;
    /** Character offset where this section started in the source file. */
    offset?: number;
}
export interface MemoryFile {
    filePath: string;
    header: string;
    sections: MemorySection[];
}
export interface AppendSectionOptions {
    importance?: Importance;
    /** Default true. When true, line-level overlap with the existing section is suppressed. */
    dedup?: boolean;
    /** Optional explicit section title; otherwise the first markdown heading in `body` is used. */
    title?: string;
    now?: Date;
}
export interface MemoryMaintenanceSummary {
    compactedFiles: number;
    archivedSections: number;
    totalBytesBefore: number;
    totalBytesAfter: number;
}
export interface MemoryGcSummary {
    removedSections: number;
    dedupedLines: number;
    filesScanned: number;
}
export interface MemoryRenderOptions {
    /** Max characters in the rendered output. When the file exceeds this, lowest-importance sections collapse to a TOC. */
    budgetChars?: number;
}
export interface RankedSection extends MemorySection {
    score: number;
    source: string;
}
export declare function parseMemoryFile(content: string, filePath: string): MemoryFile;
export declare function serializeMemoryFile(file: MemoryFile): string;
export declare function appendMemorySection(projectDir: string, fileName: string, body: string, options?: AppendSectionOptions): Promise<{
    written: boolean;
    reason?: string;
}>;
export declare function renderMemoryFileForPrompt(projectDir: string, fileName: string, options?: MemoryRenderOptions): Promise<string>;
export declare function searchMemory(projectDir: string, query: string, limit?: number): Promise<RankedSection[]>;
export declare function runMemoryMaintenance(projectDir: string): Promise<MemoryMaintenanceSummary>;
export declare function runMemoryGc(projectDir: string): Promise<MemoryGcSummary>;
//# sourceMappingURL=memoryIntelligence.d.ts.map