import type { DiffResult, ItemState, ScopeState, StateFile } from "../types/state.js"; export declare function loadState(stateFilePath: string): Promise; export declare function saveState(stateFilePath: string, state: StateFile): Promise; export declare function calculateDiff(oldScope: ScopeState | undefined, newItems: ItemState[], workspaceRoot?: string, options?: { forceUpdate?: boolean; adoptExisting?: boolean; /** Exact 1.1.6 hashes recomputed from current effective settings. */ legacySettingsHashes?: ReadonlyMap; }): DiffResult; export declare function getScopeState(state: StateFile, scopeId: string): ScopeState | undefined; export declare function updateScopeState(state: StateFile, scopeId: string, scopeState: ScopeState): StateFile;