import type { AsyncFn } from './types.js';
interface WithPoolOpts {
    concurrencyCount?: number;
}
export declare function createWithPool(opts?: WithPoolOpts): {
    withPool(fn: AsyncFn): (...args: any[]) => Promise<unknown>;
};
export declare function withPool(fn: AsyncFn, opts?: WithPoolOpts): (...args: any[]) => Promise<unknown>;
export {};
//# sourceMappingURL=with_pool.d.ts.map