/** * Creates a Uint8Array from a variable list of byte numbers. */ export declare const fromBytes: (...bytes: number[]) => Uint8Array; /** * Concatenates multiple Uint8Arrays into a single new Uint8Array. */ export declare const concatUint8Arrays: (arrays: Uint8Array[]) => Uint8Array; /** * Converts a Uint8Array to a lowercase hexadecimal string. */ export declare const toHex: (buffer: Uint8Array) => string; /** * Converts a 16-bit unsigned integer to a 2-byte Uint8Array in Big-Endian format. */ export declare const uint16ToBytesBE: (val: number) => Uint8Array; /** * Reads a 16-bit unsigned integer from a buffer at a specific offset in Big-Endian format. */ export declare const bytesToUint16BE: (buffer: Uint8Array, offset?: number) => number; /** * Creates a copy of a segment of a Uint8Array. */ export declare const sliceUint8Array: (arr: Uint8Array, start: number, end?: number) => Uint8Array; /** * Checks if the provided object is a Uint8Array. */ export declare const isUint8Array: (obj: any) => obj is Uint8Array; /** * Allocates a new Uint8Array of the specified size and optionally fills it. */ export declare const allocUint8Array: (size: number, fill?: number) => Uint8Array; /** * Converts a number to a Uint8Array in Little-Endian format. */ export declare const toBytesLE: (val: number, byteLen?: number) => Uint8Array; /** * Combines two bytes into a 16-bit unsigned integer in Little-Endian format. */ export declare const fromBytesLE: (lo: number, hi: number) => number; declare const _default: { fromBytes: (...bytes: number[]) => Uint8Array; concatUint8Arrays: (arrays: Uint8Array[]) => Uint8Array; toHex: (buffer: Uint8Array) => string; uint16ToBytesBE: (val: number) => Uint8Array; bytesToUint16BE: (buffer: Uint8Array, offset?: number) => number; sliceUint8Array: (arr: Uint8Array, start: number, end?: number) => Uint8Array; isUint8Array: (obj: any) => obj is Uint8Array; allocUint8Array: (size: number, fill?: number) => Uint8Array; toBytesLE: (val: number, byteLen?: number) => Uint8Array; fromBytesLE: (lo: number, hi: number) => number; }; export default _default;