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