UNPKG

@nlabs/arkhamjs-storage-browser

Version:

Browser storage for ArkhamJS

17 lines (16 loc) 676 B
import { BrowserStorageOptions } from '../types/main'; export declare class BrowserStorage { static window: any; private options; constructor(options?: BrowserStorageOptions); static delLocalData(key: string): boolean; static delSessionData(key: string): boolean; static getLocalData(key: string): any; static getLocalStorage(): any; static getSessionData(key: string): any; static getSessionStorage(): any; static setLocalData(key: string, value: any): boolean; static setSessionData(key: string, value: any): boolean; getStorageData(key: string): Promise<any>; setStorageData(key: string, value: any): Promise<boolean>; }