//#region src/promise-queue/index.d.ts /** * @deprecated Not used by the engine; CircularBuffer is the block queue. Kept for compatibility, removed in 3.0. */ declare class PromiseQueue { /** Optional error handler for enqueue failures */ private errorHandler?; /** Array of promises representing queued items */ private items; /** Function to resolve the next enqueued promise */ private enqueuer; /** Function to resolve the continue promise when space is available */ private batcher; /** Flag indicating if the queue is synced with the data source */ synced: boolean; /** Maximum number of items to keep in the queue */ private batchSize; /** Promise that resolves when it's safe to enqueue more items */ private continuePromise; constructor(batchSize: number, errorHandler?: (error: unknown) => void); enqueue(item: T | PromiseLike): void; clear(): void; dequeue(): Promise; continue(): Promise; setSynced(): void; isEmpty(): boolean; size(): number; } /** * Circular buffer implementation using promises for efficient memory usage * Reuses array slots in a circular fashion to maintain constant memory footprint * Used by the indexer for managing block processing queues */ declare class CircularBuffer { /** Optional error handler for enqueue failures */ private errorHandler?; /** Fixed-size array of promises representing buffered items */ private items; /** Function to resolve the next enqueued promise */ private enqueuer; /** Current number of items in the buffer */ private count; /** Index of the next item to dequeue */ private next; /** Function to resolve the continue promise when space is available */ private batcher; /** Flag indicating if the buffer is synced with the data source */ synced: boolean; /** Maximum number of items the buffer can hold */ private batchSize; /** Promise that resolves when it's safe to enqueue more items */ private continuePromise; /** Index of the next available slot for enqueueing */ private nextAvail; constructor(batchSize: number, errorHandler?: (error: unknown) => void); enqueue(item: T | PromiseLike): void; dequeue(): Promise; clear(): void; continue(): Promise; setSynced(): void; isEmpty(): boolean; size(): number; } //#endregion export { CircularBuffer, PromiseQueue }; //# sourceMappingURL=index.d.cts.map