import type { Transaction } from '../index'; /** * deploy the given contract * * @param {String} from - sender address * @param {String} data - data to send with the transaction ( return of txFormat.buildData(...) ). * @param {String} value - decimal representation of value. * @param {String} gasLimit - decimal representation of gas limit. * @param {Object} txRunner - TxRunner.js instance * @param {Object} callbacks - { confirmationCb, gasEstimationForceSend, promptCb } * [validate transaction] confirmationCb (network, tx, gasEstimation, continueTxExecution, cancelCb) * [transaction failed, force send] gasEstimationForceSend (error, continueTxExecution, cancelCb) * [personal mode enabled, need password to continue] promptCb (okCb, cancelCb) * @param {Function} finalCallback - last callback. */ export declare function createContract({ from, data, value, gasLimit, signed, authorizationList }: Transaction, txRunner: any, callbacks: any, finalCallback: any): any; /** * call the current given contract ! that will create a transaction ! * * @param {String} from - sender address * @param {String} to - recipient address * @param {String} data - data to send with the transaction ( return of txFormat.buildData(...) ). * @param {String} value - decimal representation of value. * @param {String} gasLimit - decimal representation of gas limit. * @param {Object} txRunner - TxRunner.js instance * @param {Object} callbacks - { confirmationCb, gasEstimationForceSend, promptCb } * [validate transaction] confirmationCb (network, tx, gasEstimation, continueTxExecution, cancelCb) * [transaction failed, force send] gasEstimationForceSend (error, continueTxExecution, cancelCb) * [personal mode enabled, need password to continue] promptCb (okCb, cancelCb) * @param {Function} finalCallback - last callback. */ export declare function callFunction({ from, to, data, value, gasLimit, signed, authorizationList }: Transaction, funAbi: any, txRunner: any, callbacks: any, finalCallback: any): void; /** * check if the vm has errored * * @param {Object} execResult - execution result given by the VM, contain errorMessage and errorDate * @param {Object} compiledContracts - Object containing contract compilation details * @return {Object} - { error: true/false, message: DOMNode } */ export declare function checkError(execResult: any, compiledContracts: any): { error: boolean; message: string; };