/** * @import { BytesLike } from "@helios-lang/codec-utils" * @import { ConstrData, UplcData, UplcProgramV1, UplcProgramV2 } from "@helios-lang/uplc" * @import { Address, SpendingCredential, TxInput, TxOutput, TxOutputDatum, TxOutputId, TxOutputIdLike, Value } from "../index.js" */ /** * @template {SpendingCredential} [SC=SpendingCredential] * @param {TxOutputIdLike} outputId * @param {TxOutput | undefined} output - used during building/emulation, not part of serialization * @returns {TxInput} */ export function makeTxInput(outputId: TxOutputIdLike, output?: TxOutput | undefined): TxInput; /** * Decodes either the ledger representation of full representation of a TxInput * @param {BytesLike} bytes * @returns {TxInput} */ export function decodeTxInput(bytes: BytesLike): TxInput; /** * Full representation (as used in ScriptContext) * @param {boolean} mainnet * @param {UplcData} data * @returns {TxInput} */ export function convertUplcDataToTxInput(mainnet: boolean, data: UplcData): TxInput; /** * Tx inputs must be ordered. * The following function can be used directly by a js array sort * @param {TxInput} a * @param {TxInput} b * @returns {number} */ export function compareTxInputs(a: TxInput, b: TxInput): number; /** * @overload * @param {boolean} expectFull * @returns {(bytes: BytesLike) => boolean} */ export function isValidTxInputCbor(expectFull: boolean): (bytes: BytesLike) => boolean; /** * @overload * @param {BytesLike} bytes * @param {boolean} expectFull * @returns {boolean} /** * @param {[boolean] | [BytesLike, boolean]} args * @returns {((bytes: BytesLike) => boolean) | boolean} */ export function isValidTxInputCbor(bytes: BytesLike, expectFull: boolean): boolean; /** * Used by TxBodyBuilder.addInput and TxBodyBuilder.addRefInput * @param {TxInput[]} list * @param {TxInput} input * @param {boolean} checkUniqueness */ export function appendTxInput(list: TxInput[], input: TxInput, checkUniqueness?: boolean): void; import type { SpendingCredential } from "../index.js"; import type { TxOutputIdLike } from "../index.js"; import type { TxOutput } from "../index.js"; import type { TxInput } from "../index.js"; import type { BytesLike } from "@helios-lang/codec-utils"; import type { UplcData } from "@helios-lang/uplc"; //# sourceMappingURL=TxInput.d.ts.map