import { DemoReader } from './index.js'; import { StreamingBuffer } from '../stream/streamingBuffer.js'; /** * DemoStream - Adapter to stream demo blocks into a StreamingBuffer * * Facilitates reading a demo file (which consists of discrete blocks) * as a continuous stream of data for the NetworkMessageParser. */ export declare class DemoStream { private reader; private buffer; private _isComplete; constructor(demoData: ArrayBuffer | Uint8Array); /** * Load all remaining blocks from the demo into the streaming buffer. * Useful for parsing a complete demo file at once. */ loadComplete(): void; /** * Load the next N blocks from the demo into the streaming buffer. * Useful for simulating streaming playback or throttling. * @param count Number of blocks to load * @returns True if blocks were loaded, False if end of demo reached */ loadNextBlocks(count: number): boolean; /** * Check if the entire demo has been loaded into the buffer. */ isComplete(): boolean; /** * Get the underlying streaming buffer for parsing. */ getBuffer(): StreamingBuffer; /** * Get the underlying demo reader (e.g. to check total size or progress) */ getReader(): DemoReader; } //# sourceMappingURL=demoStream.d.ts.map