libresolver/dist/resolverModule.d.ts

24 lines
723 B
TypeScript

import type { DNSResult, ResolverOptions } from "./types.js";
import { ResolverRegistry } from "@lumeweb/resolver";
export interface ResolverModule {
constructor(resolver: ResolverRegistry): void;
resolve(
domain: string,
options: ResolverOptions,
bypassCache: boolean
): Promise<DNSResult>;
getSupportedTlds(): string[];
}
export declare abstract class AbstractResolverModule {
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