interface CacheOptions { ttl?: number; } interface DIDResolver { resolve(did: string): Promise; supports(id: string): boolean; } export declare class CachedDIDResolver { private router; private ttl; private readonly CACHE_PREFIX; constructor(router: DIDResolver, cacheOptions?: CacheOptions); private getCacheKey; private getCacheEntry; private setCacheEntry; getCachedDIDs(): Promise; resolve(did: string): Promise; private refreshInBackground; /** * if the did is provided, it will remove the specific did from the cache * otherwise, it will clear the entire cache * @param did */ clearCache(did?: string): Promise; supports(id: string): boolean; } export {}; //# sourceMappingURL=cached-did-resolver.d.ts.map