/** *@internal */ 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: TData; } | undefined; set: (data: { created: Date; data: TData; }) => Map; }; }; type WithCacheParameters = { /** The key to cache the data against. */ cacheKey: string; /** The time that cached data will remain in memory. Default: Infinity (no expiry) */ cacheTime?: number; }; /** * Returns the result of a given promise, and caches the result for * subsequent invocations against a provided cache key. * @internal */ export declare function withCache(fn: () => Promise, { cacheKey, cacheTime }: WithCacheParameters): Promise; export {}; //# sourceMappingURL=withCache.d.ts.map