export interface SimpleStorage { getItem(key: string): string | undefined; setItem(key: string, data: string): void; removeItem(key: string): void; } export interface JsonStorage { read(key: string): T; write(key: string, data: T): void; delete(key: string): void; } export declare function makeJsonStorage(storage: SimpleStorage): JsonStorage;