//@ts-nocheck
import {} from '../../helpers.js';
import { BinaryReader } from '../../binary.js';
import { MsgSendPacket, MsgSendPacketResponse } from './msgs.js';
export class MsgClientImpl {
    rpc;
    constructor(rpc) {
        this.rpc = rpc;
        this.sendPacket = this.sendPacket.bind(this);
    }
    sendPacket(request) {
        const data = MsgSendPacket.encode(request).finish();
        const promise = this.rpc.request('agoric.vibc.Msg', 'SendPacket', data);
        return promise.then(data => MsgSendPacketResponse.decode(new BinaryReader(data)));
    }
}
//# sourceMappingURL=msgs.rpc.msg.js.map