import { IStorage } from "../types.js"; interface IAsyncStorage { getItem: (key: string) => Promise; setItem: (key: string, value: string) => Promise; removeItem: (key: string) => Promise; } interface IAsyncStorageOptions { storage: IAsyncStorage; globalKey?: string; } /** * Async storage for mobx store manager */ declare class AsyncStorage implements IStorage { /** * Cookie storage key */ protected globalKey: string; /** * @protected */ protected storage: IAsyncStorage; /** * @constructor */ /** * @constructor */ constructor({ storage, globalKey }: IAsyncStorageOptions); /** * @inheritDoc */ /** * @inheritDoc */ get(): Promise | undefined>; /** * @inheritDoc */ /** * @inheritDoc */ flush(): Promise; /** * @inheritDoc */ /** * @inheritDoc */ set(value: Record | undefined): Promise; } export { AsyncStorage as default };