import { ByteString, SHPreimage } from '../smart-contract/types/index.js'; /** * Decodes a serialized SHPreimage from a Uint8Array. * * @param preimage - The serialized preimage data as a Uint8Array * @returns The decoded SHPreimage object containing: * - Version number * - Hash of previous outputs * - Spent script hash * - Spent data hash * - Spent amount * - Sequence number * - Hash of spent amounts * - Hash of spent scripts * - Hash of spent datas * - Hash of sequences * - Hash of outputs * - Input index * - Lock time * - Sighash type */ export declare function decodeSHPreimage(preimage: Uint8Array): SHPreimage; /** * Encodes a SHPreimage object into a ByteString by concatenating its fields. * Each field is converted to a ByteString with appropriate formatting. * * @param shPreimage - The SHPreimage object containing all required fields * @returns The concatenated ByteString representation of the SHPreimage */ export declare function encodeSHPreimage(shPreimage: SHPreimage): ByteString; //# sourceMappingURL=preimage.d.ts.map