import type { WorkerPoolOptions } from 'workerpool';
import type { WorkerTypeMapping, WorkerParams, WorkerResponse } from './types.js';
export type WorkerPoolConfig = {
    workerScript: string;
    lazy: boolean;
} & WorkerPoolOptions;
type RegisteredWorkers = keyof WorkerTypeMapping;
export declare class WorkerPool {
    #private;
    constructor(config: WorkerPoolConfig);
    exec<TWorkerKey extends RegisteredWorkers>(method: TWorkerKey, params: WorkerParams<TWorkerKey>, options?: {
        timeout?: number;
    }): Promise<WorkerResponse<TWorkerKey>>;
    terminate(): Promise<void>;
}
export {};
//# sourceMappingURL=worker-pool.d.ts.map