/**
 * Memory consolidator — cold-path hippocampus clustering and promotion.
 *
 * Groups stale hippocampus entries by tag/theme similarity, merges each
 * cluster into a single cortex-level summary, and archives the originals.
 *
 * Design:
 *   - No external LLM required. Uses extractive summarization (term freq).
 *   - Pluggable Summarizer interface: swap in LLM backend when available.
 *   - Safe: never deletes originals; marks them 'archived' in state.
 *   - Run nightly via the watchdog or on-demand via nexus_memory_hygiene.
 */
import BetterSqlite3 from 'better-sqlite3';
export interface Summarizer {
    summarize(entries: string[], topic: string): Promise<string>;
}
/** Extractive summarizer — no LLM dependency. */
export declare class ExtractiveSummarizer implements Summarizer {
    summarize(entries: string[], _topic: string): Promise<string>;
}
export interface ConsolidationOptions {
    /** Min age in ms before a hippocampus entry is eligible (default: 24h). */
    minAgeMs?: number;
    /** Min cluster size to bother merging (default: 3). */
    minClusterSize?: number;
    /** Similarity threshold for grouping entries (default: 0.3). */
    similarityThreshold?: number;
    /** Custom summarizer (default: ExtractiveSummarizer). */
    summarizer?: Summarizer;
}
export interface ConsolidationResult {
    clustersProcessed: number;
    entriesArchived: number;
    memoriesPromoted: number;
}
/**
 * Consolidate stale hippocampus entries into cortex summaries.
 * Safe: marks originals 'archived', never deletes.
 */
export declare function consolidateMemory(db: BetterSqlite3.Database, opts?: ConsolidationOptions): Promise<ConsolidationResult>;
