import { AbstractPool, IWorker, ThreadPoolOptions } from "poolifier";
interface GetWorkerPoolFn {
    <T>(availableParallelism: number, url: string, options: ThreadPoolOptions): AbstractPool<IWorker, T>;
}
export interface WorkerPoolConfig {
    getWorkerPool?: GetWorkerPoolFn;
}
export declare function getWorkerPoolForImportURL<T>(relative: string, url: string | URL, options?: ThreadPoolOptions): AbstractPool<IWorker, unknown, unknown>;
/**
 * @param url
 * @param options used when new pool created for url, not used if exists
 */
export declare function getWorkerPool<T>(url: string | URL, options?: ThreadPoolOptions): AbstractPool<IWorker, T>;
export {};
