/** @module crosschainSendETH */ import type { Account, Address, Chain, Client, ContractFunctionReturnType, DeriveChain, EstimateContractGasErrorType, Transport, WriteContractErrorType } from 'viem'; import { superchainETHBridgeAbi } from '../../abis/index.js'; import type { BaseWriteContractActionParameters } from '../../core/baseWriteAction.js'; import type { ErrorType } from '../../types/utils.js'; /** * @category Types */ export type SendETHParameters> = BaseWriteContractActionParameters & { /** Address to send ETH to. */ to: Address; /** Chain ID of the destination chain. */ chainId: number; }; /** * @category Types */ export type SendETHContractReturnType = ContractFunctionReturnType; /** * @category Types */ export type SendETHErrorType = EstimateContractGasErrorType | WriteContractErrorType | ErrorType; /** * Sends ETH to the specified recipient on the destination chain * @category Actions * @param client - L2 Client * @param parameters - {@link SendETHParameters} * @returns transaction hash - {@link SendETHContractReturnType} */ export declare function sendETH(client: Client, parameters: SendETHParameters): Promise; /** * Estimates gas for {@link sendETH} * @category Actions * @param client - L2 Client * @param parameters - {@link SendETHParameters} * @returns estimated gas value. */ export declare function estimateSendETHGas(client: Client, parameters: SendETHParameters): Promise; /** * Simulate contract call for {@link sendETH} * @category Actions * @param client - L2 Client * @param parameters - {@link SendETHParameters} * @returns contract return value - {@link SendETHContractReturnType} */ export declare function simulateSendETH(client: Client, parameters: SendETHParameters): Promise;