export default class PromiseQueue {
    private threads;
    private queue;
    private queueing;
    constructor(threads?: number);
    private $clear;
    add<T>(promise: Promise<T> | (() => Promise<T>)): Promise<T>;
    stop(): void;
    private $nextTask;
    ready(): Promise<void>;
}
