import type { Hash } from '../../api/types'; import type { Transaction } from '../../api/checkpoints/types'; import type { TransactionReceipt, EstimateFee, PaymentPayload } from './types'; /** * Transactions API methods */ export declare const transactionsApi: { /** * Get transaction by hash * @param hash Hash of the transaction to lookup * @returns Promise with transaction response */ getByHash: (hash: string) => import("../../client/index.js").PromiseWrapper<"custom", Transaction, Transaction, Transaction, import("../../client/index.js").ParsedError, import("../../client/index.js").ParsedError | Transaction, import("../../client/index.js").ParsedError<"timeout">, ""> & Promise; /** * Get transaction receipt by hash * @param hash Hash of the transaction to lookup receipt for * @returns Promise with transaction receipt response */ getReceiptByHash: (hash: string) => import("../../client/index.js").PromiseWrapper<"custom", TransactionReceipt, TransactionReceipt, TransactionReceipt, import("../../client/index.js").ParsedError, import("../../client/index.js").ParsedError | TransactionReceipt, import("../../client/index.js").ParsedError<"timeout">, ""> & Promise; /** * Estimate transaction fee * @param from Address of the transaction author * @param value Value of the transaction * @param token Optional token address * @returns Promise with fee estimate response */ estimateFee: (from: string, value: string, token?: string) => import("../../client/index.js").PromiseWrapper<"custom", EstimateFee, EstimateFee, EstimateFee, import("../../client/index.js").ParsedError, import("../../client/index.js").ParsedError | EstimateFee, import("../../client/index.js").ParsedError<"timeout">, ""> & Promise; /** * Submit payment transaction * @param payload Payment transaction payload * @returns Promise with transaction hash response */ payment: (payload: PaymentPayload) => import("../../client/index.js").PromiseWrapper<"custom", Hash, Hash, Hash, import("../../client/index.js").ParsedError, import("../../client/index.js").ParsedError | Hash, import("../../client/index.js").ParsedError<"timeout">, ""> & Promise; }; export default transactionsApi;