@mobile-wallet-protocol/client
Version:
Client SDK for the Mobile Wallet Protocol
11 lines (10 loc) • 497 B
TypeScript
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>;
}