/// <reference types="node" />
export default class BinaryWriter {
    data: Array<number>;
    /**
     * Appends a byte array to the data array.
     * @param b
     */
    write(b: Array<number>): void;
    /**
     * Appends a `byte`/`uint8` to the data array.
     * @param b
     */
    writeUInt8(b: number): void;
    /**
     * Appends a `short`/`uint16` to the data array.
     * @param s
     */
    writeUInt16(s: number): void;
    toBuffer(): Buffer;
}
