import { randomBytes } from '@noble/hashes/utils'; /** * Check if 2 Uint8Arrays are equal * // TODO - review function name */ export declare function buffEquals(a: Uint8Array, b: Uint8Array): boolean; /** * Encodes the given bigint as a little-endian Uint8Array. */ export declare function bnToBytes(num: bigint, len?: number): Uint8Array; export declare function bnToShortestBytes(num: bigint): Uint8Array; /** * Decodes the given Uint8Array as a little-endian bigint. */ export declare function bytesToBn(data: Uint8Array): bigint; /** * Encodes the given string as utf8 Uint8Array. */ export declare function bytesToStr(data: Uint8Array): string; /** * Decodes the given utf8 Uint8Array as a string. */ export declare function strToBytes(str: string): Uint8Array; /** * Computes `x ^ (2 ^ power) mod p` */ export declare function pow2(x: bigint, power: bigint, modulo: bigint): bigint; declare const bytesToHex: (b: Uint8Array) => string, hexToBytes: (hex: string) => Uint8Array, concatBytes: (...arrs: Uint8Array[]) => Uint8Array, mod: (a: bigint, b?: bigint | undefined) => bigint, invert: (num: bigint, md?: bigint | undefined) => bigint; export { bytesToHex, hexToBytes, concatBytes, randomBytes, mod, invert, }; //# sourceMappingURL=util.d.ts.map