import type { Transaction } from '@iota/iota-sdk/transactions'; import type { SignedTransaction, IotaSignTransactionInput } 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 UseSignTransactionArgs = PartialBy, 'account' | 'chain'> & { transaction: Transaction | string; }; interface UseSignTransactionResult extends SignedTransaction { reportTransactionEffects: (effects: string) => void; } type UseSignTransactionError = WalletFeatureNotSupportedError | WalletNoAccountSelectedError | WalletNotConnectedError | Error; type UseSignTransactionMutationOptions = Omit, 'mutationFn'>; /** * Mutation hook for prompting the user to sign a transaction. */ export declare function useSignTransaction({ mutationKey, ...mutationOptions }?: UseSignTransactionMutationOptions): UseMutationResult; export {}; //# sourceMappingURL=useSignTransaction.d.ts.map