import type { DnsClient } from "@waku/interfaces";
export declare class DnsOverHttps implements DnsClient {
    private resolver;
    /**
     * Create new Dns-Over-Http DNS client.
     *
     * @throws {code: string} If DNS query fails.
     */
    static create(): Promise<DnsOverHttps>;
    private constructor();
    /**
     * Resolves a TXT record
     *
     * @param domain The domain name
     *
     * @throws if the query fails
     */
    resolveTXT(domain: string): Promise<string[]>;
}
