export declare type ICommonFunction = (...args: any[]) => T; export default class PromiseQueue { process: ICommonFunction>; maxConcurrent: number; retry: boolean; queue: any[]; processing: Set; processed: Set; numRunning: number; runPromise: Promise; resolve: ICommonFunction; reject: ICommonFunction; constructor(callback: ICommonFunction>, options?: { maxConcurrent?: number; retry?: boolean; }); add(job: any, ...args: any[]): void; run(): Promise; private runJob; _next(): void; _reset(): void; }