import { PrexStorage } from './PrexStorage'; export class MockStorage implements PrexStorage { private store: Record = {}; async getItem(key: string): Promise { return this.store[key] || null; } async setItem(key: string, value: T): Promise { this.store[key] = value; } async removeItem(key: string): Promise { delete this.store[key]; } async getItemFromSessionStorage(key: string): Promise { return this.store[key] || null; } async setItemToSessionStorage(key: string, value: T): Promise { this.store[key] = value; } async removeItemFromSessionStorage(key: string): Promise { delete this.store[key]; } }