/// /** * Convert a little-endian buffer into a BigInt. * @param buf The little-endian buffer to convert * @returns A BigInt with the little-endian representation of buf. */ export declare function toBigIntLE(buf: Buffer): bigint; /** * Convert a big-endian buffer into a BigInt * @param buf The big-endian buffer to convert. * @returns A BigInt with the big-endian representation of buf. */ export declare function toBigIntBE(buf: Buffer): bigint; /** * Convert a BigInt to a little-endian buffer. * @param num The BigInt to convert. * @param width The number of bytes that the resulting buffer should be. * @returns A little-endian buffer representation of num. */ export declare function toBufferLE(num: bigint, width: number): Buffer; /** * Convert a BigInt to a big-endian buffer. * @param num The BigInt to convert. * @param width The number of bytes that the resulting buffer should be. * @returns A big-endian buffer representation of num. */ export declare function toBufferBE(num: bigint, width: number): Buffer;