diff --git a/src/index.ts b/src/index.ts index bad382b..7e66afb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -7,12 +7,22 @@ import type { import { DNS_RECORD_TYPE } from "@lumeweb/libresolver"; import { dnsClient } from "./client.js"; import { DnsClient } from "@lumeweb/kernel-dns-client"; +import { ResolverOptions } from "@lumeweb/libresolver/src/types.js"; let resolver: ResolverModule; -interface ResolverModule extends ResolverModuleBase { +export interface ResolverModule { get resolver(): DnsClient; set resolver(value: DnsClient); + resolve( + domain: string, + options: ResolverOptions, + bypassCache: boolean + ): Promise; + + getSupportedTlds(): string[]; + getSupportedTlds(): Promise; + getSupportedTlds(): any; } export function setup(rm: ResolverModule) {