import type { ThirdwebClient } from "../../client/client.js"; import type { Wallet } from "../interfaces/wallet.js"; import type { GetCallsStatusRawResponse, GetCallsStatusResponse, WalletSendCallsId } from "./types.js"; export type GetCallsStatusOptions = { wallet: Wallet; client: ThirdwebClient; id: WalletSendCallsId; }; /** * Get the status of an [EIP-5792](https://eips.ethereum.org/EIPS/eip-5792) bundle. * * This function is dependent on the wallet's support for EIP-5792 and could fail. * * @param {GetCallsStatusOptions} options * @param {Wallet} options.wallet - The wallet that send the original calls. * @param {ThirdwebClient} options.client - A {@link ThirdwebClient} instance. * @param {WalletSendCallsId} options.bundleId - The ID of the bundle to get the status of. * @throws an error if the wallet does not support EIP-5792. * @returns {Promise} - A promise that resolves to the bundle's status and receipts (if available). {@link GetCallsStatusResponse} * @beta * @example * ```ts * import { createThirdwebClient } from "thirdweb"; * import { sendCalls, getCallsStatus } from "thirdweb/wallets/eip5792"; * * const client = createThirdwebClient({ clientId: ... }); * * const result = await sendCalls({ wallet, client, calls }); * * let result; * while (result.status !== "success") { * result = await getCallsStatus(result); * } * ``` * @extension EIP5792 */ export declare function getCallsStatus({ wallet, client, id, }: GetCallsStatusOptions): Promise; export declare function toGetCallsStatusResponse(response: GetCallsStatusRawResponse): GetCallsStatusResponse; //# sourceMappingURL=get-calls-status.d.ts.map