declare const window: any; export const storage = { async getItem(key: string): Promise { if (typeof window === "undefined") return null; return window.localStorage.getItem(key); }, async setItem(key: string, value: string): Promise { if (typeof window === "undefined") return; window.localStorage.setItem(key, value); }, async removeItem(key: string): Promise { if (typeof window === "undefined") return; window.localStorage.removeItem(key); }, };