import { ethers } from "ethers"; import { RevertOptions, TxOptions } from "../../../types/contracts.types"; import { ZetaChainClient } from "./client"; /** * @function zetachainWithdraw * @description Withdraws a specified amount of ZRC20 tokens from ZetaChain to a connected chain. * * @param {ZetaChainClient} this - The instance of the ZetaChain client that contains the signer information. * @param {object} args - The function arguments. * @param {string} args.amount - The amount of ZRC20 tokens to withdraw. * @param {string} args.gatewayZetaChain - The address of the ZetaChain gateway contract. * @param {string} args.receiver - The address that will receive the withdrawn ZRC20 tokens. * @param {string} args.zrc20 - The address of the ZRC20 token contract from which the withdrawal will be made. * @param {txOptions} args.txOptions - Transaction options such as gasPrice, nonce, etc. * @param {revertOptions} args.revertOptions - Options to handle call reversion, including revert address and message. * * @returns {object} - Returns an object containing the transaction, gas token, and gas fee. * @property {object} tx - The transaction object for the withdrawal. * @property {string} gasZRC20 - The address of the ZRC20 gas token. * @property {ethers.BigNumber} gasFee - The amount of gas fee paid for the transaction. */ export declare const zetachainWithdraw: (this: ZetaChainClient, args: { amount: string; gatewayZetaChain?: string; receiver: string; revertOptions: RevertOptions; txOptions: TxOptions; zrc20: string; }) => Promise<{ gasFee: bigint; gasZRC20: string; tx: ethers.ContractTransactionResponse; }>;