import type { Chain, Client, Hex, SendTransactionParameters, Transport } from "viem"; import type { GetEntryPointFromAccount, SmartContractAccount } from "../../account/smartContractAccount.js"; import type { UserOperationOverrides } from "../../types.js"; import type { UserOperationContext } from "./types.js"; /** * Sends a transaction using the provided client, arguments, optional overrides, and context. * This sends a UO and then waits for it to be mined * * @example * ```ts * import { createSmartAccountClient } from "@aa-sdk/core"; * * // smart account client is already extended with sendTransaction * const client = createSmartAccountClient(...); * const result = await client.sendTransaction({ * to: "0x...", * data: "0x...", // or "0x", * value: 0n, // optional * account, // only required if the client above is not connected to an account * }); * ``` * * @param {Client} client_ The client to send the transaction through * @param {SendTransactionParameters} args The parameters required to send the transaction * @param {UserOperationOverrides} [overrides] Optional overrides for the user operation * @param {UserOperationContext} [context] Optional context for the user operation * @returns {Promise} A promise that resolves to a hex string representing the transaction hash */ export declare function sendTransaction = GetEntryPointFromAccount>(client_: Client, args: SendTransactionParameters, overrides?: UserOperationOverrides, context?: TContext): Promise;