export default XgBuffer; declare class XgBuffer { /** * A buffer to store loaded data. * * @class LoaderBuffer * @param {number} length - Optional the buffer size */ constructor(length: number); length: number; historyLen: number; array: any[]; offset: number; /** * The function to push data. * * @param {Uint8Array} data - The data to push into the buffer */ push(data: Uint8Array): void; /** * The function to shift data. * * @param {number} length - The size of shift. */ shift(length: number): any; /** * Function to clear the buffer. */ clear(): void; destroy(): void; /** * Function to shift one unit8Array. */ _shiftBuffer(): any; /** * Convert uint8 data to number. * * @param {number} start - the start postion. * @param {number} length - the length of data. */ toInt(start: number, length: number): number; }