/**
 * @deprecated Use kaitai instead
 */
export declare class BitBuffer {
    _offset: number;
    _leastSignificantBitFirst: boolean;
    readonly offset: number;
    protected _scratch: DataView;
    protected _view: Uint8Array;
    constructor(source: Uint8Array, lastOffset?: number);
    static minSizeToFitBits(nbBits: number): number;
    static create(nbBits: number): BitBuffer;
    sizeInBits(): any;
    view(): Uint8Array;
    seekTo(offset: number): this;
    forward(nbBits?: number): this;
    _setBit(on: boolean): void;
    getUintX(nbBits: number, signed?: boolean, offset?: number): number;
    fromOffsetLessNumber(nbBits: number): any;
    getBits(nbBits: number, signed: boolean, offset?: number): number;
    append(data: Uint8Array, nbBits?: number, fromLeftBits?: boolean): void;
    /**
     * TODO
     * @param value
     * @param nbBits
     */
    setBits(value: number, nbBits: number): void;
    getBoolean(offset?: number): boolean;
    getInt8(offset?: number): number;
    getUint8(offset?: number): number;
    getInt16(offset?: number): number;
    getUint16(offset?: number): number;
    getInt32(offset?: number): number;
    getUint32(offset?: number): number;
    getFloat32(offset?: number): number;
    getFloat64(offset?: number): number;
    setBoolean(value: number): void;
    setUint8(value: number): void;
    setUint16(value: number): void;
    setUint32(value: number): void;
    setFloat32(value: number): void;
    setFloat64(value: number): void;
    getArrayBuffer(offset: number, byteLength: number): Uint8Array;
}
