import { TxHashPreimage, ByteString } from "../types/index.js"; import { SmartContractLib } from "../smartContractLib.js"; /** * Utility class for working with transaction hash preimages in Bitcoin smart contracts. * Provides methods to: * - Calculate transaction hash from preimage data * - Extract individual input/output byte strings from preimage */ export declare class TxHashPreimageUtils extends SmartContractLib { /** * Computes the transaction hash from a given transaction hash preimage. * Validates the preimage structure and constructs the hash by concatenating * version, input/output counts, input/output lists, and lock time. * * @param txHashPreimage - The transaction hash preimage containing version, * input/output lists, and lock time. * @returns The computed transaction hash as a ByteString. */ static getTxHashFromTxHashPreimage(txHashPreimage: TxHashPreimage): ByteString; /** * Extracts the byte string of a specific input from the transaction hash preimage. * @param txHashPreimage The transaction hash preimage containing input data. * @param inputIndex The index of the input to extract. * @returns The byte string representing the specified input. */ static getInputByteString(txHashPreimage: TxHashPreimage, inputIndex: bigint): ByteString; /** * Extracts the byte string of a specific output from the transaction hash preimage. * @param txHashPreimage The transaction hash preimage containing output list. * @param outputIndex The index of the output to extract. * @returns The byte string of the specified output. */ static getOutputByteString(txHashPreimage: TxHashPreimage, outputIndex: bigint): ByteString; } //# sourceMappingURL=txHashPreimageUtils.d.ts.map