import type { SessionEntry } from "../session-manager.ts";
export interface WarmAnchorSnapshot {
    firstKeptEntryId: string;
    prefixEntryIds: readonly string[];
    latestCompactionEntryId: string | null;
}
export declare function createWarmAnchorSnapshot(firstKeptEntryId: string, branchEntries: readonly SessionEntry[]): WarmAnchorSnapshot | undefined;
/**
 * A warm summary describes the entries before its cut point, so growth after that
 * cut - idle wait notices, monitor state, and the user's next prompt - leaves it
 * accurate. Validity is therefore a property of the summarized prefix, not of a
 * monotonic message revision, which counts appends the summary never covered.
 *
 * The compaction boundary is compared by IDENTITY rather than array position:
 * compaction records are appended after the entries they summarize, so a valid
 * next-generation anchor routinely precedes the boundary it updates, and two
 * sibling branches can carry different boundaries at the same index.
 */
export declare function isWarmSummaryAnchorValid(snapshot: WarmAnchorSnapshot, currentBranchEntries: readonly SessionEntry[]): boolean;
//# sourceMappingURL=warm-anchor.d.ts.map