import { EndianType } from '../shared/DataTypes'; declare class BitUtils { protected bitGet(num: number, idx: number): string; protected bitSet(num: number[], idx: number, val: number): number[]; protected bin2decSigned(bits: string): number; protected bin2dec(bin: string): number; protected uint8ToBinary(dec: number): string; /** * Converts an uint8[] payload to a binary string * @param payload number[] CAN payload in decimal. * @param endian The type of encoding, Intel vs Motorola for the payload */ protected payload2Binary(payload: number[], endian: EndianType): string[]; protected extractBitRange(binary: string[], startBit: number, bitRange: number, endian: EndianType): string[]; } export default BitUtils;