/** * BufferBuilder provides methods to create a buffer from primitive values. The buffer grows as * needed. * * Each method on buffer builder appends the value to the end of the buffer. * * A buffer can be reset to re-use the underlying memory and start writing at the start of the buffer. */ export declare class BufferBuilder { #private; constructor(); /** * Length in bytes of the written buffer */ get length(): number; /** Returns a copy of the written data. */ get buffer(): Readonly; /** Returns a temporary view into the underlying buffer (not a copy). */ bufferView(byteOffset: number, byteLength: number): Uint8Array; int8(value: number): this; uint8(value: number): this; int16(value: number): this; uint16(value: number): this; int32(value: number): this; uint32(value: number): this; int64(value: bigint): this; uint64(value: bigint): this; string(value: string): this; bytes(buffer: Uint8Array): this; tupleArray(write1: (_: T1) => void, write2: (_: T2) => void, array: Iterable<[T1, T2]>): this; /** * Move the write head to offset bytes from the start of the buffer. * * If the buffer is smaller than the new offset location, the buffer expands. */ seek(offset: number): this; /** * reset the write head to the start of the buffer */ reset(): this; } //# sourceMappingURL=BufferBuilder.d.ts.map