2022-08-18 14:58:17 +00:00
|
|
|
import type { DNSResult, ResolverOptions } from "./types.js";
|
2022-08-18 15:01:28 +00:00
|
|
|
export interface ResolverModule {
|
|
|
|
constructor(resolver: any): void;
|
|
|
|
resolve(
|
|
|
|
domain: string,
|
|
|
|
options: ResolverOptions,
|
|
|
|
bypassCache: boolean
|
|
|
|
): Promise<DNSResult>;
|
2022-08-18 14:58:17 +00:00
|
|
|
}
|
|
|
|
export declare abstract class AbstractResolverModule {
|
2022-08-18 15:01:28 +00:00
|
|
|
protected resolver: any;
|
|
|
|
constructor(resolver: any);
|
|
|
|
abstract resolve(
|
|
|
|
input: string,
|
|
|
|
options: ResolverOptions,
|
|
|
|
force: boolean
|
|
|
|
): Promise<DNSResult>;
|
|
|
|
getSupportedTlds(): string[];
|
|
|
|
isTldSupported(domain: string): boolean;
|
2022-08-18 14:58:17 +00:00
|
|
|
}
|
2022-08-18 15:01:28 +00:00
|
|
|
//# sourceMappingURL=resolverModule.d.ts.map
|