import type { Timeout } from './types'; export declare type CacheData = { data: R; params: P; time: number; }; export declare type CacheResultType = CacheData & { timer?: Timeout; }; declare type CacheKey = string; export declare const getCache: (cacheKey: CacheKey) => CacheResultType | undefined; export declare const setCache: (cacheKey: CacheKey, cacheTime: number, data: CacheData) => void; export declare const clearCache: (cacheKey?: string | undefined) => void; export {};