import type { Constructor } from 'atma-utils'; export interface IObjectStoreOptions { path: string; map?(x: T): TOut; serialize?(x: T): any; Type?: Constructor; format?: boolean; default?: TOut; watchFs?: boolean; onFsChanged?: () => any; transport?: 'file' | 'localStorage'; } export declare class JsonObjectStore { options: IObjectStoreOptions; private data; private fs; constructor(options: IObjectStoreOptions); get(opts?: { cloned?: boolean; }): Promise; save(data: T): Promise; getLock(): import("atma-utils").class_Dfr; private onStoreChanged; private restore; }