1 | export interface Storage {
|
2 | getItem(key: string): any;
|
3 | setItem?(key: string, value: any): any;
|
4 | removeItem?(key: string): any;
|
5 | }
|
6 | export declare class MemoryStorage implements Storage {
|
7 | store: {
|
8 | [key: string]: any;
|
9 | };
|
10 | constructor();
|
11 | getItem(key: string): Promise<any>;
|
12 | setItem(key: string, value: any): Promise<any>;
|
13 | removeItem(key: string): Promise<any>;
|
14 | }
|
15 | export declare class StorageWrapper implements Storage {
|
16 | storage: any;
|
17 | constructor(storage: any);
|
18 | getItem(key: string): Promise<any>;
|
19 | setItem(key: string, value: any): Promise<any>;
|
20 | removeItem(key: string): Promise<any>;
|
21 | }
|