import type { Writable } from 'node:stream'; import CacheHandler from 'undici/types/cache-interceptor'; import CacheStore = CacheHandler.CacheStore; /** * A wrapper around a cache store that adds the `x-comunica-cache: HIT` header to cached responses. */ export declare class MetadataWrappingCacheStore implements CacheStore { private readonly cacheStore; constructor(cacheStore: CacheStore); get(key: CacheHandler.CacheKey): Promise; createWriteStream(key: CacheHandler.CacheKey, val: CacheHandler.CacheValue): Writable | undefined; delete(key: CacheHandler.CacheKey): void | Promise; }