import { type CoValuePriority } from "../priority.js"; /** * A callback that pushes content when invoked. * Content is only fetched from the database when this callback is called. */ export type ContentCallback = () => void; /** * A priority-based queue for storage content streaming. * * This queue manages content streaming for all priority levels (HIGH, MEDIUM, LOW). * Content is processed in priority order: HIGH first, then MEDIUM, then LOW. * * Key features: * - Stores callbacks to get content (lazy evaluation) rather than content itself * - Priority-based ordering: HIGH > MEDIUM > LOW */ export declare class StorageStreamingQueue { private queues; constructor(); private getQueue; /** * Push a content callback to the queue with explicit priority. * The callback will be invoked when the entry is pulled and processed. * * @param entry - Callback that pushes content when invoked * @param priority - Priority for this entry (HIGH, MEDIUM, or LOW) */ push(entry: ContentCallback, priority: CoValuePriority): void; /** * Pull the next entry from the queue. * Returns undefined if no entries are available. * Priority order: HIGH > MEDIUM > LOW */ pull(): ContentCallback | undefined; /** * Check if the queue is empty (no pending entries). */ isEmpty(): boolean; private listener; setListener(listener: () => void): void; emit(): void; } //# sourceMappingURL=StorageStreamingQueue.d.ts.map