import type { Transaction } from '@iota/iota-sdk/transactions'; import type { IotaSignAndExecuteTransactionInput, IotaSignAndExecuteTransactionOutput } from '@iota/wallet-standard'; import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; import { WalletFeatureNotSupportedError, WalletNoAccountSelectedError, WalletNotConnectedError } from '../../errors/walletErrors.js'; import type { PartialBy } from '../../types/utilityTypes.js'; type UseSignAndExecuteTransactionArgs = PartialBy, 'account' | 'chain'> & { transaction: Transaction | string; waitForTransaction?: boolean; }; type UseSignAndExecuteTransactionResult = IotaSignAndExecuteTransactionOutput; type UseSignAndExecuteTransactionError = WalletFeatureNotSupportedError | WalletNoAccountSelectedError | WalletNotConnectedError | Error; type ExecuteTransactionResult = { digest: string; rawEffects?: number[]; } | { effects?: { bcs?: string; }; }; type UseSignAndExecuteTransactionMutationOptions = Omit, 'mutationFn'> & { execute?: ({ bytes, signature }: { bytes: string; signature: string; }) => Promise; }; /** * Mutation hook for prompting the user to sign and execute a transaction. */ export declare function useSignAndExecuteTransaction({ mutationKey, execute, ...mutationOptions }?: UseSignAndExecuteTransactionMutationOptions): UseMutationResult; export {}; //# sourceMappingURL=useSignAndExecuteTransaction.d.ts.map