import * as Core from "@blaze-cardano/core"; import { ProtocolParameters, Transaction, TransactionId } from "@blaze-cardano/core"; import { Provider } from "@blaze-cardano/query"; import { TxBuilder } from "@blaze-cardano/tx"; import { Wallet } from "@blaze-cardano/wallet"; export * from "@blaze-cardano/query"; export * from "@blaze-cardano/tx"; export * from "@blaze-cardano/wallet"; export * from "@blaze-cardano/uplc"; //#region src/blaze.d.ts /** * The Blaze class is used to create and manage Cardano transactions. * It requires a provider and a wallet to interact with the blockchain and manage funds. */ declare class Blaze { readonly provider: ProviderType; wallet: WalletType; readonly params: ProtocolParameters; /** * Constructs a new instance of the Blaze class. * @param {ProviderType} provider - The provider to use for interacting with the blockchain. * @param {WalletType} wallet - The wallet to use for managing funds and signing transactions. * @private */ private constructor(); static from(provider: ProviderType, wallet: WalletType): Promise>; /** * Creates a new transaction using the provider and wallet. * @returns {TxBuilder} - The newly created transaction builder. */ newTransaction(): TxBuilder; /** * Signs a transaction using the wallet. * @param {Transaction} tx - The transaction to sign. * @returns {Promise} - The signed transaction. */ signTransaction(tx: Transaction): Promise; /** * Submits a transaction to the blockchain. * @param {Transaction} tx - The transaction to submit. * @returns {Promise} - The transaction ID. * @throws {Error} If the transaction submission fails. * @remarks * This method sends the provided transaction to the blockchain network * using the configured wallet, or the configured provider if set. */ submitTransaction(tx: Transaction, useProvider?: boolean): Promise; } //#endregion export { Blaze, Core };