interface PromiseHandlerOptions { concurrency?: number; } declare class PromiseHandler { private queue; private running; private concurrency; constructor(options?: PromiseHandlerOptions); clear: () => void; add: (task: () => Promise, ref: unknown) => Promise; private processQueue; } export declare const createPromiseHandler: (options?: PromiseHandlerOptions) => PromiseHandler; export declare const promiseHandler: PromiseHandler; export {}; //# sourceMappingURL=promiseHandler.d.ts.map