class Storage { private data: Map; constructor() { this.data = new Map(); } public async getItem(key: string) { return this.data.get(key); } public async setItem(key: string, value: string) { this.data.set(key, value); } public async removeItem(key: string) { this.data.delete(key); } public async clear() { this.data = new Map(); } } const SessionStorage = new Storage(); export { SessionStorage };