import type { LookupOptions } from "node:dns"; import type { LookupFunction } from "node:net"; import type { CacheInterface } from "@odg/cache"; import type { CacheableLookupConfig, LookupCacheType, LookupPromiseResult } from "../interfaces"; export declare class CacheableLookup { private readonly cache; private readonly resolver; private readonly maxTTL; private shouldWriteCache; private shouldReadCache; constructor(cache: CacheInterface, config?: CacheableLookupConfig); setReadCache(shouldReadCache: boolean): this; setWriteCache(shouldWriteCache: boolean): this; lookup(...lookupParameters: Parameters): void; lookupAsync(hostname: string, options: LookupOptions): Promise; private callLookupCallback; private callLookupErrorCallback; private makeCacheKey; } //# sourceMappingURL=CacheableLookup.d.ts.map