import type { z } from 'zod'; import type { SerializedRunState } from './runState'; type SerializedState = z.infer; /** * Older writers kept raw compaction output but dropped its RunItem wrapper. Restore the latest * marker before resuming because it carries the context required for the next model window. */ type LegacyCompactionRehydration = { stateJson: SerializedState; sessionReconciliation?: { generatedInsertionIndex: number; previousPersistedItemCount: number; }; }; export declare function rehydrateLegacyCompactionRunItems(stateJson: SerializedState): LegacyCompactionRehydration; export {};