/** * DataWriter is a utility class for writing binary data to a * dynamically growing ArrayBuffer. */ export declare class DataWriter { #private; constructor(initialSize?: number); /** * The current writing position in the buffer. * This is the next position where data will be written. */ get position(): number; /** * The length of the written data in bytes. * This is the maximum position reached during writing. */ get byteLength(): number; /** * Returns a DataView of the written data. */ getData(): DataView; /** * Moves the writing position to the specified position. * If the position is greater than the current buffer size, * the buffer will be expanded to accommodate the new position. */ seek(position: number): DataWriter; writeUint8(value: number): DataWriter; writeInt8(value: number): DataWriter; writeUint16(value: number): DataWriter; writeInt16(value: number): DataWriter; writeUint24(value: number): DataWriter; writeUint32(value: number): DataWriter; writeInt32(value: number): DataWriter; writeFixed(value: number): DataWriter; writeBytes(bytes: number[] | Uint8Array): DataWriter; writeData(data: DataView): DataWriter; writeAscii(str: string): DataWriter; writeUtf16BE(str: string): DataWriter; }