/** * Transaction Hash Primitive. */ export declare class TransactionHash { readonly bytes: Uint8Array; /** * Instantiates TransactionHash from a Transaction Hash's bytes. * * @param bytes {Uint8Array} The Transaction Hash's bytes. */ constructor(bytes: Uint8Array); /** * Instantiates TransactionHash from a hex string. * * @param hex {string} The hex string. * * @throws {Error} If hex is invalid. * * @returns {TransactionHash} Instance of TransactionHash. */ static fromHex(hex: string): TransactionHash; /** * Instantiates TransactionHash from a Transaction's bytes. * * @param transactionBytes {Uint8Array} The Transaction's bytes. * * @returns {TransactionHash} Instance of TransactionHash. */ static fromTransactionBytes(transactionBytes: Uint8Array): TransactionHash; /** * Instantiates TransactionHash from a Transaction's bytes in hex. * * @param transactionHex {Uint8Array} The Transaction's bytes in hex. * * @throws {Error} If hex is invalid. * * @returns {TransactionHash} Instance of TransactionHash. */ static fromTransactionHex(transactionHex: string): TransactionHash; /** * Returns transaction hash as a hex string. * * @returns {string} Hex string of the Transaction Hash. */ toHex(): string; /** * Returns transaction hash as a Uint8Array. * * @returns {Uint8Array} Uint8Array of the Transaction Hash. */ toBytes(): Uint8Array; }