/**
 * TODO clean usage and remove in favor of KaitaiStream
 * @deprecated
 */
export declare class ByteBuffer {
    _data: Uint8Array;
    _offset: number;
    _lsb: boolean;
    lsb: boolean;
    constructor(data: Uint8Array);
    static merge(...args: Uint8Array[]): ByteBuffer;
    static from(value: Uint8Array): ByteBuffer;
    readNumber(sizeOf?: number, signed?: boolean, lsb?: boolean | undefined): number;
    get_number(length: number): number;
    get_string(length: number): string;
    get_bytes(length?: number): Uint8Array;
    put_bytes(data: Uint8Array, length?: number): this;
    readUnsignedNumber(sizeOf?: number, lsb?: boolean): number;
    /**
     *
     * @param length
     */
    readArray(length?: number): Uint8Array;
    readonly data: Uint8Array;
    put_boolean(value: boolean, mask: number): this;
    put_string(value: string, length?: number): this;
    /**
     * Build data from 0 to offset
     */
    build(): Uint8Array;
    forward(size: number): this;
    add(data: Uint8Array, length?: number): this;
    put_number(value: any, sizeOf: number): this;
    addNumber(value: number, sizeOf?: number, lsb?: boolean): this;
    static create(size: number): ByteBuffer;
    offset: number;
}
