import { Transaction, TransactionSign, TransactionSignAndBroadcast, TransactionSignRaw } from "@ledgerhq/wallet-api-core"; import type { WalletAPIClient } from "../WalletAPIClient"; export declare class TransactionModule { private client; constructor(client: WalletAPIClient); /** * Let the user sign a transaction that won't be broadcasted by the connected wallet * @param accountId - id of the account * @param transaction - The transaction object in the currency family-specific format * @param options - Extra parameters * * @returns The raw signed transaction * @throws {@link RpcError} if an error occurred on server side */ sign(accountId: string, transaction: Transaction, options?: TransactionSign["params"]["options"], meta?: Record): Promise; /** * Let the user sign a raw transaction that can be broadcasted by the connected wallet * @param accountId - id of the account * @param transaction - The raw transaction string in the currency family-specific format * @param broadcast - Optional boolean to indicate if the transaction should be broadcasted by the wallet * @param options - Extra parameters * * @returns The raw signed transaction * @throws {@link RpcError} if an error occurred on server side */ signRaw(accountId: string, transaction: string, broadcast?: boolean, options?: TransactionSignRaw["params"]["options"], meta?: Record): Promise<{ signedTransactionHex: string; transactionHash?: string; }>; /** * Let the user sign and broadcast a transaction * @param accountId - id of the account * @param transaction - The transaction object in the currency family-specific format * @param options - Extra parameters * * @returns The transaction hash * @throws {@link RpcError} if an error occurred on server side */ signAndBroadcast(accountId: string, transaction: Transaction, options?: TransactionSignAndBroadcast["params"]["options"], meta?: Record): Promise; } //# sourceMappingURL=Transaction.d.ts.map