/** * @import { BytesLike } from "@helios-lang/codec-utils" * @import { ByteArrayData, UplcData } from "../index.js" */ /** * @param {BytesLike} args * @returns {ByteArrayData} */ export function makeByteArrayData(args: BytesLike): ByteArrayData; /** * @param {UplcData} data * @param {string} msg * @returns {asserts data is ByteArrayData} */ export function assertByteArrayData(data: UplcData, msg?: string): asserts data is ByteArrayData; /** * Calculates the mem size of a byte array without the DATA_NODE overhead. * @param {number[]} bytes * @returns {number} */ export function calcByteArrayMemSize(bytes: number[]): number; /** * Bytearray comparison, which can be used for sorting bytearrays * `lengthFirst=true` is used for cbor-specific Bytearray comparison (see https://datatracker.ietf.org/doc/html/rfc7049#section-3.9) in Assets.sort() * @param {number[]} a * @param {number[]} b * @param {boolean} lengthFirst - defaults to false * @returns {number} - `-1` -> lt, `0` -> equals, `1` -> gt */ export function compareByteArrayData(a: number[], b: number[], lengthFirst?: boolean): number; /** * @param {BytesLike} bytes * @returns {ByteArrayData} */ export function decodeByteArrayData(bytes: BytesLike): ByteArrayData; /** * @param {UplcData} data * @param {string} msg * @returns {ByteArrayData} */ export function expectByteArrayData(data: UplcData, msg?: string): ByteArrayData; import type { BytesLike } from "@helios-lang/codec-utils"; import type { ByteArrayData } from "../index.js"; import type { UplcData } from "../index.js"; //# sourceMappingURL=ByteArrayData.d.ts.map