import { type GetEntryPointFromAccount, type SendTransactionsParameters, type UserOperationContext } from "@alchemy/aa-core"; import { type UseMutateAsyncFunction, type UseMutateFunction } from "@tanstack/react-query"; import { type Chain, type Hash, type Hex, type Transport } from "viem"; import type { SupportedAccounts } from "../../config/types.js"; import type { BaseHookMutationArgs } from "../types.js"; import { type UseSmartAccountClientResult } from "./useSmartAccountClient.js"; export type UseSendTransactionsMutationArgs = BaseHookMutationArgs>; export type UseSendTransactionsArgs = { client: UseSmartAccountClientResult["client"] | undefined; } & UseSendTransactionsMutationArgs; export type UseSendTransactionsResult = GetEntryPointFromAccount> = { sendTransactions: UseMutateFunction, unknown>; sendTransactionsAsync: UseMutateAsyncFunction, unknown>; sendTransactionsResult: Hex | undefined; isSendingTransactions: boolean; error: Error | null; }; /** * @deprecated use useSendUserOperation instead * * Allows you to send a batch of transactions as a single user operation and await * the transaction to be mined. * * @param params - see {@link UseSendTransactionsArgs} * @returns a collection of functions and state for sending transactions {@link UseSendTransactionsResult} */ export declare function useSendTransactions = GetEntryPointFromAccount>(params: UseSendTransactionsArgs): UseSendTransactionsResult; //# sourceMappingURL=useSendTransactions.d.ts.map