UNPKG

1.25 kBTypeScriptView Raw
1/** @class */
2export declare class MemoryStorage {
3 /**
4 * This is used to set a specific item in storage
5 * @param {string} key - the key for the item
6 * @param {object} value - the value
7 * @returns {string} value that was set
8 */
9 static setItem(key: string, value: any): any;
10 /**
11 * This is used to get a specific key from storage
12 * @param {string} key - the key for the item
13 * This is used to clear the storage
14 * @returns {string} the data item
15 */
16 static getItem(key: string): any;
17 /**
18 * This is used to remove an item from storage
19 * @param {string} key - the key being set
20 * @returns {string} value - value that was deleted
21 */
22 static removeItem(key: string): boolean;
23 /**
24 * This is used to clear the storage
25 * @returns {string} nothing
26 */
27 static clear(): {};
28}
29export declare class StorageHelper {
30 private storageWindow;
31 /**
32 * This is used to get a storage object
33 * @returns {object} the storage
34 */
35 constructor();
36 /**
37 * This is used to return the storage
38 * @returns {object} the storage
39 */
40 getStorage(): any;
41}
42/**
43 * @deprecated use named import
44 */
45export default StorageHelper;