import BN from 'bn.js'; /** * converts uint8 array to unsigned number aligned with Big endian * @param array big order uint8 byte array */ /** * converts unsigned number to uint8array * @param value */ /** * converts an int value to a str, using the given alphabet. * Padding can be computed as: ceil(log of max_val base alphabet_len) * @param value * @param alphabet * @param padding */ export declare function itoa(value: BN | number, alphabet: string, padding?: number): string; /** * Converts a str value to an int, using the given alphabet. * @param value * @param alphabet */ export declare function atoi(value: string, alphabet: string): BN; /** * creates timer function which returns current time in nanoseconds */ export declare function timer(): () => BN; /** * generates 10 digit */ export declare function randHex(len: number): BN; //# sourceMappingURL=utils.d.ts.map