UNPKG

@mobile-wallet-protocol/client

Version:
11 lines (10 loc) 497 B
import { KeyValueStorage, Scope, ScopedStorage } from './types'; export declare class ScopedAsyncStorage extends ScopedStorage implements KeyValueStorage { constructor(scope: Scope, module?: string); storeObject<T>(key: string, item: T): Promise<void>; loadObject<T>(key: string): Promise<T | undefined>; setItem(key: string, value: string): Promise<void>; getItem(key: string): Promise<string | null>; removeItem(key: string): Promise<void>; clear(): Promise<void>; }