import type { Account, Chain, ContractFunctionArgs, Transport, WalletClient, WriteContractReturnType } from 'viem'; import type { L2WriteContractParameters } from '../../../types/l2Actions.js'; import { ABI, FUNCTION, type WithdrawToParameters } from '../../../types/withdrawTo.js'; export type WriteWithdrawERC20Parameters = { args: WithdrawToParameters; } & L2WriteContractParameters, TChain, TAccount, TChainOverride>; /** * Withdraws ERC20 tokens to an L1 address. * * @param {Address} l2Token the address of the ERC20 token on L2 * @param {Address} to the address to withdraw to on L1 * @param {Bigint} amount the amount of tokens to withdraw * @param {Bigint} minGasLimit the minimum gas limit for the withdrawal * @param {Hex} [extraData] the extra data for the withdrawal * * @returns {Promise} the hash of the transaction */ export declare function writeWithdrawERC20(client: WalletClient, { args: { l2Token, to, amount, minGasLimit, extraData }, ...rest }: WriteWithdrawERC20Parameters): Promise; //# sourceMappingURL=writeWithdrawERC20.d.ts.map