type Timer = ReturnType; type CachedKey = string | number; export interface CachedData { data: TData; params: TParams; time: number; } interface RecordData extends CachedData { timer: Timer | undefined; } declare const setCache: (key: CachedKey, cacheTime: number, cachedData: CachedData) => void; declare const getCache: (key: CachedKey) => RecordData | undefined; declare const clearCache: (key?: string | string[]) => void; export { getCache, setCache, clearCache };