kernel-libresolver/dist/index.d.ts

23 lines
800 B
TypeScript
Raw Normal View History

2023-02-20 02:13:16 +00:00
import type {
DNSResult,
ResolverModule as ResolverModuleBase,
} from "@lumeweb/libresolver";
2023-02-20 01:39:48 +00:00
import { DnsClient } from "@lumeweb/kernel-dns-client";
import { ResolverOptions } from "@lumeweb/libresolver/src/types.js";
export interface ResolverModule {
get resolver(): DnsClient;
set resolver(value: DnsClient);
resolve(
domain: string,
options: ResolverOptions,
bypassCache: boolean
): Promise<DNSResult>;
getSupportedTlds(): string[];
getSupportedTlds(): Promise<string[]>;
getSupportedTlds(): any;
}
2023-02-20 02:13:16 +00:00
export declare function setup(rm: ResolverModule | ResolverModuleBase): void;
2023-02-19 22:36:14 +00:00
export * from "@lumeweb/libresolver/dist/util.js";
export * from "@lumeweb/libresolver/dist/types.js";
2023-02-19 22:39:40 +00:00
export { AbstractResolverModule } from "@lumeweb/libresolver/dist/resolverModule.js";