export type CacheItem = { data: T; time: number; }; export declare const getCachedItem: (key: string) => CacheItem; export declare const setCachedItem: (key: string, value: any) => void; export declare const getDataWithCache: (key: string, dataGetter?: () => T | Promise, validator?: (data: T) => boolean, cacheTime?: number) => Promise;