import { Endpoint } from "dns-query"; import { DnsClient } from "./dns"; export declare class DnsOverHttps implements DnsClient { private endpoints; private retries; /** * Default endpoints to use for DNS queries. * Taken from https://github.com/martinheidegger/dns-query as static data * to avoid dynamic queries. * * To dynamically retrieve other endpoints, use https://github.com/martinheidegger/dns-query#well-known-endpoints */ static DefaultEndpoints: Endpoint[]; /** * Create new Dns-Over-Http DNS client. * * @param endpoints The endpoints for Dns-Over-Https queries; * Defaults to [[DnsOverHttps.DefaultEndpoints]]. * @param retries Retries if a given endpoint fails. * * @throws {code: string} If DNS query fails. */ constructor(endpoints?: Endpoint[], retries?: number); /** * Resolves a TXT record * * @param domain The domain name * * @throws if the query fails */ resolveTXT(domain: string): Promise; }