import type { CortexStore, SessionRow } from '../db/store.js'; export interface CompressedEvent { type: string; target?: string; count?: number; line_ranges?: [number, number][]; iterations?: number; files?: string[]; description?: string; exit_code?: number; category?: string; } export declare function consolidateLevel1(store: CortexStore, sessionId: string): CompressedEvent[]; /** * Returns sessions that have ended but have no session-layer state yet. */ export declare function getPendingConsolidation(store: CortexStore): SessionRow[]; /** * Write a session summary to the state table (layer='session'), * then prune raw events for that session. */ export declare function writeSessionSummary(store: CortexStore, sessionId: string, summary: string): void; /** * Merge older session states into a project-level state when session count exceeds MERGE_THRESHOLD. * Returns true if a merge was performed, false otherwise. */ export declare function mergeProjectState(store: CortexStore): boolean; export declare function renderCompressed(events: CompressedEvent[]): string; //# sourceMappingURL=consolidate.d.ts.map