import { FloatConversionConfig, ToBytesConfig } from "../sharedTypes"; /** * This class handles any number|bigint, in any type Number notation(decimal,octal,hex,binary) */ export default class NumberConverter { protected original: number | bigint; constructor(original: number | bigint); toBinary({ precision }?: FloatConversionConfig): string; toInteger({ isSigned }?: { isSigned?: boolean; }): number; /** * Does not support bigint(above 32 bit) or floating point. */ toBytes({ endianness }?: Omit): string[]; toDecimalBytes({ endianness, isSigned }?: ToBytesConfig): number[]; toHexString({ precision }?: FloatConversionConfig): string; toFloat({ precision }?: FloatConversionConfig): number; }