import type { LoopRun, PhaseRun } from "./types"; export type PersistedState = { phaseRuns: PhaseRun[]; loops: LoopRun[]; savedAt: string; }; export declare function snapshotPersistedState(phaseRuns: ReadonlyMap, loops: ReadonlyMap): PersistedState; export declare function rebuildActivePhaseBySession(phaseRuns: ReadonlyMap, activePhaseBySession: Map): void; export declare function pruneEphemeralRuntimeState(phaseRuns: ReadonlyMap, commandContextByRun: Map, pendingFinalizeRuns: Set): void; export declare function latestPersistedStateFromBranch(entries: unknown[], stateEntryType: string): PersistedState | null; export declare function readPersistedStateFile(cwd: string, stateFileRelativePath: string): PersistedState | null; export declare function writePersistedStateFile(cwd: string, stateFileRelativePath: string, state: PersistedState): void; export declare function newerPersistedState(a: PersistedState | null, b: PersistedState | null): PersistedState | null; export declare function applyPersistedState(state: PersistedState | null, phaseRuns: Map, loops: Map): void; //# sourceMappingURL=runtime-state.d.ts.map