declare class ByteReader extends Uint8Array { index: number; chunkBuffer: Uint8Array; constructor(...args: any[]); /** * Advance the reader by `n` bytes. */ Jump(n: number): void; /** * Get the current reader index. */ GetIndex(): number; /** * Set the current reader index. */ SetIndex(n: number): void; /** * Get the remaining number of bytes in the buffer. */ GetRemaining(): number; /** * Get the length of the buffer. */ GetLength(): number; /** * Read an arbitrary number of bytes and return them as a new Uint8Array. This * advances the read index by the number of bytes requested. */ Array(n: number): Uint8Array; /** * Compare a sequence of bytes against the bytes at the current index. If * they match, advance the index past the compared bytes and return true. * Otherwise return false. */ Match(arr: any): boolean; /** * Read a single byte and return it as a number. */ Byte(): number; UInt8(): number; UInt16LE(): number; UInt16BE(): number; UInt32LE(): number; UInt32BE(): number; Int8(): number; Int16LE(): number; Int16BE(): number; Int32LE(): number; Int32BE(): number; /** * Parse a 32‑bit IEEE754 float stored in Roblox's custom floating point * representation. See the original source for more details. */ static ParseRBXFloat(long: number): number; static ParseFloat(long: number): number; static ParseDouble(long0: number, long1: number): number; FloatLE(): number; FloatBE(): number; DoubleLE(): number; DoubleBE(): number; /** * Read an ASCII/UTF‑8 string of length `n` from the buffer. */ String(n: number): string; /** * Roblox binary format stores compressed chunks using LZ4. This method * reads the length headers, decompresses the following bytes into the * provided buffer and returns a Uint8Array view. For chunks with a * compression length of 0, it simply returns the raw data. */ LZ4(buffer: any): Uint8Array; /** * Roblox interleaves integers and floats in a specific pattern. These * helpers decode those interleaved values into a destination array. See * https://github.com/RobloxAPI/rbx-binformat for details. */ RBXInterleavedUint32(count: number, result: any[]): any[]; RBXInterleavedInt32(count: number, result: any[]): any[]; RBXInterleavedFloat(count: number, result: any[]): any[]; } export default ByteReader;