import type { PersistedState } from "./types.js";
export declare function saveState(dataDir: string, state: PersistedState): Promise<void>;
/**
 * Load raw persisted state from disk.
 * Returns the raw parsed JSON — caller is responsible for migration
 * from legacy format to current PersistedState.
 *
 * Checks agentvault.json first, falls back to secure-channel.json
 * for backward compatibility. Auto-migrates on first legacy load.
 */
export declare function loadState(dataDir: string): Promise<any | null>;
export declare function clearState(dataDir: string): Promise<void>;
//# sourceMappingURL=state.d.ts.map