import type { CompressionState, CoreMessage } from "./types.js"; export interface CompressInputEntry { startId?: string; endId?: string; messageId?: string; summary: string; topic?: string; } export interface RebuildResult { state: CompressionState; blocksRebuilt: number; } export interface RebuildPorts { countTokens?: (text: string) => number; } /** * Fork-recovery: reconstruct compression state by replaying historical * `compress` tool-call messages. Message refs (mNNNNN) are assigned by * message order, so they are fork-stable — a ref in a historical compress * input points to the same logical message after a fork regenerates IDs. * The rebuilt state is an approximation: only raw model summaries are * replayed (no protected-content enrichments). */ export declare function rebuildCompressionState(state: CompressionState, messages: CoreMessage[], config: import("./types.js").Config, ports?: RebuildPorts): RebuildResult; //# sourceMappingURL=rebuild.d.ts.map