import BitArray from '../../common/BitArray' ; import { int } from '../../../customTypings' ; export default abstract class Token { private previous : Token ; constructor ( previous ) { this . previous = previous ; } public getPrevious ( ) { return this . previous ; } public abstract add ( value , bitCount ) ; public abstract addBinaryShift ( start , byteCount ) ; public abstract appendTo ( bitArray , text ) ; }