import { type int8, type int16, type int32, type uint8, type uint16, type uint32 } from "./primitive-types";
export declare class BufferWriter {
    protected _capacity: number;
    protected _offset: number;
    protected _length: number;
    protected _wb: Buffer;
    get capacity(): number;
    get length(): number;
    get currentOffset(): number;
    toBuffer(): Buffer<ArrayBuffer>;
    constructor(cap?: number);
    protected guard(len2write: number): void;
    shrinkToFit(): void;
    seek(offset: number): number;
    bytes(b: Buffer): void;
    int8(n: int8): void;
    int16(n: int16): void;
    int32(n: int32): void;
    uint8(n: uint8): void;
    uint16(n: uint16): void;
    uint32(n: uint32): void;
}
//# sourceMappingURL=buffer-writer.d.ts.map