import type { ThirdwebClient } from "../../../client/client.js"; import type { ExecuteWithSigParams } from "../../../extensions/erc7702/__generated__/MinimalAccount/write/executeWithSig.js"; import type { SignedAuthorization } from "../../../transaction/actions/eip7702/authorization.js"; import type { PreparedTransaction } from "../../../transaction/prepare-transaction.js"; import type { SerializableTransaction } from "../../../transaction/serialize-transaction.js"; import type { TransactionReceipt } from "../../../transaction/types.js"; import { type Hex } from "../../../utils/encoding/hex.js"; import type { Account } from "../../interfaces/wallet.js"; import { type BundlerOptions, type EstimationResult, type GasPriceResult, type PmTransactionData, type SmartWalletOptions, type UserOperationReceipt, type UserOperationV06, type UserOperationV07 } from "../types.js"; /** * Bundle a user operation. * @param args - The options for bundling a user operation. * @returns The bundle hash of the user operation. * @example * ```ts * import { bundleUserOp } from "thirdweb/wallets/smart"; * * const userOpHash = await bundleUserOp({ * userOp, * options, * }); * ``` * @walletUtils */ export declare function bundleUserOp(args: { userOp: UserOperationV06 | UserOperationV07; options: BundlerOptions; }): Promise; /** * Estimate the gas cost of a user operation. * @param args - The options for estimating the gas cost of a user operation. * @returns The estimated gas cost of the user operation. * @example * ```ts * import { estimateUserOpGas } from "thirdweb/wallets/smart"; * * const gasCost = await estimateUserOpGas({ * userOp, * options, * }); * ``` * @walletUtils */ export declare function estimateUserOpGas(args: { userOp: UserOperationV06 | UserOperationV07; options: BundlerOptions; }, stateOverrides?: { [x: string]: { stateDiff: { [x: string]: `0x${string}`; }; }; }): Promise; /** * Estimate the gas cost of a user operation. * @param args - The options for estimating the gas cost of a user operation. * @returns The estimated gas cost of the user operation. * @example * ```ts * import { estimateUserOpGasCost } from "thirdweb/wallets/smart"; * * const gasCost = await estimateUserOpGasCost({ * transactions, * adminAccount, * client, * smartWalletOptions, * }); * ``` * @walletUtils */ export declare function estimateUserOpGasCost(args: { transactions: PreparedTransaction[]; adminAccount: Account; client: ThirdwebClient; smartWalletOptions: SmartWalletOptions; }): Promise<{ ether: string; wei: bigint; }>; /** * Get the gas fees of a user operation. * @param args - The options for getting the gas price of a user operation. * @returns The gas price of the user operation. * @example * ```ts * import { getUserOpGasPrice } from "thirdweb/wallets/smart"; * * const fees = await getUserOpGasPrice({ * options, * }); * ``` * @walletUtils */ export declare function getUserOpGasFees(args: { options: BundlerOptions; }): Promise; /** * Get the receipt of a user operation. * @param args - The options for getting the receipt of a user operation. * @returns The receipt of the user operation. * @example * ```ts * import { getUserOpReceipt } from "thirdweb/wallets/smart"; * * const receipt = await getUserOpReceipt({ * client, * chain, * userOpHash, * }); * ``` * @walletUtils */ export declare function getUserOpReceipt(args: BundlerOptions & { userOpHash: Hex; }): Promise; /** * Get the receipt of a user operation. * @param args - The options for getting the receipt of a user operation. * @returns The raw receipt of the user operation. * @example * ```ts * import { getUserOpReceiptRaw } from "thirdweb/wallets/smart"; * * const receipt = await getUserOpReceiptRaw({ * client, * chain, * userOpHash, * }); * ``` * @walletUtils */ export declare function getUserOpReceiptRaw(args: BundlerOptions & { userOpHash: Hex; }): Promise; /** * @internal */ export declare function getZkPaymasterData(args: { options: BundlerOptions; transaction: SerializableTransaction; }): Promise; /** * @internal */ export declare function executeWithSignature(args: { eoaAddress: `0x${string}`; wrappedCalls: ExecuteWithSigParams["wrappedCalls"]; signature: `0x${string}`; authorization: SignedAuthorization | undefined; options: BundlerOptions; }): Promise<{ transactionId: string; }>; /** * @internal */ export declare function getQueuedTransactionHash(args: { transactionId: string; options: BundlerOptions; }): Promise<{ transactionHash: Hex; }>; export declare function broadcastZkTransaction(args: { options: BundlerOptions; transaction: SerializableTransaction; signedTransaction: Hex; }): Promise<{ transactionHash: Hex; }>; //# sourceMappingURL=bundler.d.ts.map