import type { Config } from './schema.js'; /** Restore an in-memory config object after a failed persistence attempt. */ export declare function restoreConfig(config: Config, snapshot: Config): void; export declare class ConfigPersistenceError extends Error { constructor(message: string, options?: ErrorOptions); } export declare function persistConfigMutation(params: { config: Config; mutate: () => T | Promise; save: () => Promise<{ saved: boolean; error?: string; }>; }): Promise;