/// import { Argument, ByzCoinRPC, ClientTransaction, Instruction } from "@dedis/cothority/byzcoin"; import { AddTxResponse } from "@dedis/cothority/byzcoin/proto/requests"; import ISigner from "@dedis/cothority/darc/signer"; /** * TransactionBuilder handles collecting multiple instructions and signing them all * together before sending the transaction to the chain. * There are convenience methods to create spawn, invoke, or delete instructions. * Once all instructions are added, the send method will contact one or more nodes * to submit the transaction. * After a call to the send method, the transaction is ready for new instructions. */ export declare class TransactionBuilder { protected bc: ByzCoinRPC; private instructions; constructor(bc: ByzCoinRPC); send(signers: ISigner[][], wait?: number): Promise<[ClientTransaction, AddTxResponse]>; hasInstructions(): boolean; append(inst: Instruction): Instruction; prepend(inst: Instruction): Instruction; spawn(iid: Buffer, contractID: string, args: Argument[]): Instruction; invoke(iid: Buffer, contractID: string, command: string, args: Argument[]): Instruction; delete(iid: Buffer, contractID: string): Instruction; toString(): string; }