export declare class RequestQueue { protected readonly _requestQueue: Map void | Promise>; protected _pendingFlush: import("../utils/promise").DeferredPromise; protected _isServing: boolean; /** * Whether items in the queue are being served immediately, otherwise they're queued to * be processed later. */ get isServing(): boolean; /** * The number of callbacks that are currently in queue. */ get size(): number; /** * Waits for the queue to be flushed (ie: start serving). */ waitForFlush(): Promise; queue(key: string | symbol, callback: () => void | Promise): Promise; serve(key: string | symbol): Promise; /** * Start serving requests. */ start(): Promise; protected _flush(): Promise; protected _empty(): void; protected _release(): void; /** * Stop serving requests, they'll be queued until you begin processing again by calling * `start()`. */ stop(): void; destroy(): void; } //# sourceMappingURL=RequestQueue.d.ts.map