import { type CompactionHandover } from '../../session/compaction-types.js'; import type { TranscriptSourceEntry } from '../../storage/sqlite/transcript-repository.js'; export type { CompactionAudit, CompactionHandover, CompactionHandoverItem, HandoverItemKind, } from '../../session/compaction-types.js'; export declare const MAX_HANDOVER_ITEMS = 120; /** Normalize legacy or model-produced ledgers into the bounded durable form. */ export declare function consolidateCompactionHandover(handover: CompactionHandover): CompactionHandover; /** Apply a bounded model-produced delta to the trusted local handover. */ export declare function applyCompactionHandoverDelta(params: { text: string; sourceThroughSeq: number; previousBoundaryId?: string; allowedSources: readonly TranscriptSourceEntry[]; current?: CompactionHandover; }): CompactionHandover; export declare function renderCompactionHandover(handover: CompactionHandover): string; export declare function handoverForPrompt(handover: CompactionHandover | undefined): object;