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(method: TWorkerKey, params: WorkerParams, options?: { timeout?: number; }): Promise>; terminate(): Promise; } export {}; //# sourceMappingURL=worker-pool.d.ts.map