import type { ErrorType } from '../errors/utils.js'; export declare const promiseCache: Map; export declare const responseCache: Map; export type GetCacheErrorType = ErrorType; export declare function getCache(cacheKey: string): { clear: () => void; promise: { clear: () => boolean; get: () => Promise | undefined; set: (data: Promise) => Map>; }; response: { clear: () => boolean; get: () => { created: Date; data: data; } | undefined; set: (data: { created: Date; data: data; }) => Map; }; }; type WithCacheParameters = { cacheKey: string; cacheTime?: number | undefined; }; export declare function withCache(fn: () => Promise, { cacheKey, cacheTime }: WithCacheParameters): Promise; export {}; //# sourceMappingURL=withCache.d.ts.map