import BigNumber from './BigNumber.js'; type WriterChunk = readonly number[] | Uint8Array; /** * WriterUint8Array is a utility class for writing binary data into a dynamically * growing Uint8Array buffer. It provides methods to write various integer types * and variable-length integers, similar to the Writer class but optimized for * Uint8Array usage. */ export declare class WriterUint8Array { private buffer; private pos; private capacity; constructor(bufs?: WriterChunk[], initialCapacity?: number); /** * Returns the current length of written data */ getLength(): number; /** * @return the written data as Uint8Array copy of the internal buffer */ toUint8Array(): Uint8Array; /** * Legacy compatibility method – returns number[] (Byte[]) */ toArray(): number[]; /** * @return the written data as Uint8Array. CAUTION: This is zero-copy subarray of the internal buffer). */ toUint8ArrayZeroCopy(): Uint8Array; private ensureCapacity; write(bytes: WriterChunk): this; writeReverse(buf: WriterChunk): this; writeUInt8(value: number): this; writeInt8(value: number): this; writeUInt16LE(value: number): this; writeUInt16BE(value: number): this; writeInt16LE(value: number): this; writeInt16BE(value: number): this; writeUInt32LE(value: number): this; writeUInt32BE(value: number): this; writeInt32LE(value: number): this; writeInt32BE(value: number): this; writeUInt64BEBn(bn: BigNumber): this; writeUInt64LEBn(bn: BigNumber): this; writeUInt64LE(n: number): this; writeVarIntNum(n: number): this; writeVarIntBn(bn: BigNumber): this; /** * Resets the writer to empty state (reuses the buffer) */ reset(): void; } export {}; //# sourceMappingURL=WriterUint8Array.d.ts.map