export declare function getValue(key: string): string | null; export declare function setValue(key: string, value: string): void; export interface StoredItemMeta { ckStoreKey: string; timestamp: string; } export type StoredItem = T & StoredItemMeta; export declare function save(storageKey: string, data: StoredItem[]): StoredItem[]; export declare function get(storageKey: string): StoredItem[]; export declare function add(storageKey: string, item: T): StoredItem[]; export declare function remove(storageKey: string, item: StoredItem): StoredItem[]; export declare function clear(storageKey: string): StoredItem[]; /** * Creates a typed storage instance for a specific key and data type. * Provides better Dev experience by not requiring the generic type on each call. * * @example * const walletStorage = createStorage<{ address: string }>('recent-wallets') * walletStorage.add({ address: '0x...' }) * const wallets = walletStorage.get() */ export declare function createStorage(storageKey: string): { get: () => StoredItem[]; save: (data: StoredItem[]) => StoredItem[]; add: (item: T) => StoredItem[]; remove: (item: StoredItem) => StoredItem[]; clear: () => StoredItem[]; };