declare module "dns/promises" { import { LookupAddress, LookupOneOptions, LookupAllOptions, LookupOptions, AnyRecord, CaaRecord, MxRecord, NaptrRecord, SoaRecord, SrvRecord, ResolveWithTtlOptions, RecordWithTtl, ResolveOptions, ResolverOptions, } from "dns"; function getServers(): string[]; function lookup(hostname: string, family: number): Promise; function lookup(hostname: string, options: LookupOneOptions): Promise; function lookup(hostname: string, options: LookupAllOptions): Promise; function lookup(hostname: string, options: LookupOptions): Promise; function lookup(hostname: string): Promise; function lookupService(address: string, port: number): Promise<{ hostname: string, service: string }>; function resolve(hostname: string): Promise; function resolve(hostname: string, rrtype: "A"): Promise; function resolve(hostname: string, rrtype: "AAAA"): Promise; function resolve(hostname: string, rrtype: "ANY"): Promise; function resolve(hostname: string, rrtype: "CAA"): Promise; function resolve(hostname: string, rrtype: "CNAME"): Promise; function resolve(hostname: string, rrtype: "MX"): Promise; function resolve(hostname: string, rrtype: "NAPTR"): Promise; function resolve(hostname: string, rrtype: "NS"): Promise; function resolve(hostname: string, rrtype: "PTR"): Promise; function resolve(hostname: string, rrtype: "SOA"): Promise; function resolve(hostname: string, rrtype: "SRV"): Promise; function resolve(hostname: string, rrtype: "TXT"): Promise; function resolve(hostname: string, rrtype: string): Promise; function resolve4(hostname: string): Promise; function resolve4(hostname: string, options: ResolveWithTtlOptions): Promise; function resolve4(hostname: string, options: ResolveOptions): Promise; function resolve6(hostname: string): Promise; function resolve6(hostname: string, options: ResolveWithTtlOptions): Promise; function resolve6(hostname: string, options: ResolveOptions): Promise; function resolveAny(hostname: string): Promise; function resolveCaa(hostname: string): Promise; function resolveCname(hostname: string): Promise; function resolveMx(hostname: string): Promise; function resolveNaptr(hostname: string): Promise; function resolveNs(hostname: string): Promise; function resolvePtr(hostname: string): Promise; function resolveSoa(hostname: string): Promise; function resolveSrv(hostname: string): Promise; function resolveTxt(hostname: string): Promise; function reverse(ip: string): Promise; function setServers(servers: ReadonlyArray): void; class Resolver { constructor(options?: ResolverOptions); cancel(): void; getServers: typeof getServers; resolve: typeof resolve; resolve4: typeof resolve4; resolve6: typeof resolve6; resolveAny: typeof resolveAny; resolveCname: typeof resolveCname; resolveMx: typeof resolveMx; resolveNaptr: typeof resolveNaptr; resolveNs: typeof resolveNs; resolvePtr: typeof resolvePtr; resolveSoa: typeof resolveSoa; resolveSrv: typeof resolveSrv; resolveTxt: typeof resolveTxt; reverse: typeof reverse; setLocalAddress(ipv4?: string, ipv6?: string): void; setServers: typeof setServers; } }