import type { Chain, Client, Hex, Transport } from "viem"; import type { WaitForUserOperationTxParameters } from "./types.js"; /** * Waits for a user operation transaction to be confirmed by checking the receipt periodically until it is found or a maximum number of retries is reached. * * @example * ```ts * import { createSmartAccountClient } from "@aa-sdk/core"; * * // smart account client is already extended with waitForUserOperationTransaction * const client = createSmartAccountClient(...); * const result = await client.waitForUserOperationTransaction({ * hash: "0x...", * retries: {...} // optional param to configure the retry amounts * }); * ``` * * @param {Client} client_ The client instance used to interact with the blockchain * @param {WaitForUserOperationTxParameters} args The parameters for the transaction to wait for * @param {Hex} args.hash The transaction hash to wait for * @param {string} args.tag The tag to use for the UO status. "pending" or "latest". Defaults to "latest". * @param {WaitForUserOperationTxParameters["retries"]} [args.retries] Optional retry parameters * @param {number} [args.retries.maxRetries] The maximum number of retry attempts * @param {number} [args.retries.intervalMs] The interval in milliseconds between retries * @param {number} [args.retries.multiplier] The multiplier for the interval between retries * @returns {Promise} A promise that resolves to the transaction hash when the transaction is confirmed */ export declare const waitForUserOperationTransaction: (client: Client, args: WaitForUserOperationTxParameters) => Promise;