24 lines
741 B
TypeScript
24 lines
741 B
TypeScript
import type { DNSResult, ResolverOptions } from "./types.js";
|
|
import { ResolverRegistry } from "@lumeweb/resolver";
|
|
export interface ResolverModule {
|
|
new (resolver: ResolverRegistry): any;
|
|
resolve(
|
|
domain: string,
|
|
options: ResolverOptions,
|
|
bypassCache: boolean
|
|
): Promise<DNSResult>;
|
|
getSupportedTlds(): string[];
|
|
}
|
|
export declare abstract class AbstractResolverModule implements ResolverModule {
|
|
protected resolver: ResolverRegistry;
|
|
constructor(resolver: ResolverRegistry);
|
|
abstract resolve(
|
|
input: string,
|
|
options: ResolverOptions,
|
|
bypassCache: boolean
|
|
): Promise<DNSResult>;
|
|
getSupportedTlds(): string[];
|
|
isTldSupported(domain: string): boolean;
|
|
}
|
|
//# sourceMappingURL=resolverModule.d.ts.map
|