import { Client, factory } from "@lumeweb/libkernel-universal"; import { DNS_RECORD_TYPE, ResolverOptions } from "@lumeweb/libresolver"; const MODULE = "PACYNuYbp_5hgCjMK16EGcytB9QCxDLe4_uitahwePdeaA"; export class DnsClient extends Client { public async register(): Promise { return this.callModuleReturn("register"); } public async clear(): Promise { return this.callModuleReturn("clear"); } public async getResolvers(): Promise { return this.callModuleReturn("getResolvers"); } public async ready(): Promise { return this.callModuleReturn("ready"); } public async resolve( domain: string, options: ResolverOptions = { type: DNS_RECORD_TYPE.CONTENT }, bypassCache: boolean = false ): Promise { return this.callModuleReturn("ready"); } } export const createClient = factory(DnsClient, MODULE);