import { factory, NetworkClient } from "@lumeweb/libkernel/module"; export const MODULE = "z3o47XoNFTX76CAM8NHDHf6G41jdpMvY9Nt5SK9ZUfvGhBcjwuyeqdzpjjgb"; export interface Response { id?: number; error?: string; result: any; } export class HandshakeClient extends NetworkClient { public async query(method: string, params: any): Promise { return this.callModuleReturn("query", { method, params }); } public async dnsQuery(fqdn: string, type: string): Promise { return this.callModuleReturn("dnsQuery", { fqdn, type }); } } export const createClient = factory(HandshakeClient, MODULE);