declare type Args = unknown[]; declare type Func = (...args: Args) => PromiseLike | Promise | T; declare type GeneratorFn = (fn: Func, ...args: Args) => Promise; declare type Limiter = GeneratorFn & { activeCount: number; pendingCount: number; clearQueue: () => void; }; /** * pLimit creates a "limiter" function that can be used to enqueue * promise returning functions with limited concurrency. */ export declare function pLimit(concurrency: number): Limiter; export { }