kernel-libresolver/dist/resolverRegistry.d.ts

25 lines
694 B
TypeScript
Raw Normal View History

2022-08-18 22:28:56 +00:00
import { DNSResult, ResolverOptions } from "@lumeweb/resolver-common";
2022-08-18 22:50:54 +00:00
import { RpcNetwork } from "@lumeweb/kernel-rpc-client";
2022-08-18 22:28:56 +00:00
export declare class ResolverRegistry {
2022-08-18 22:50:54 +00:00
private _rpcNetwork;
constructor(network: RpcNetwork);
get rpcNetwork(): RpcNetwork;
2022-08-19 13:57:34 +00:00
get resolvers(): Promise<Set<ResolverModule>>;
2022-08-18 22:28:56 +00:00
resolve(
domain: string,
options?: ResolverOptions,
bypassCache?: boolean
): Promise<DNSResult>;
}
2022-08-19 13:57:34 +00:00
export declare class ResolverModule {
private resolver;
private domain;
constructor(resolver: ResolverRegistry, domain: string);
resolve(
domain: string,
options: ResolverOptions,
bypassCache: boolean
): Promise<DNSResult>;
}
2022-08-18 22:50:54 +00:00
export { RpcNetwork };