import { IpcTransformResult } from './ipc'; import AstxWorker from './AstxWorker'; import AsyncPool from './AsyncPool'; import { RunTransformOptions, Progress } from './runTransform'; import { RunTransformOnFileOptions } from './runTransformOnFile'; export default class AstxWorkerPool { pool: AsyncPool; constructor({ capacity }?: { capacity?: number; }); end(): Promise; runTransformOnFile(options: RunTransformOnFileOptions): Promise; runTransform({ gitignore, transform, transformFile, paths, exclude, fs, cwd, config, signal, queueCapacity, }: RunTransformOptions & { queueCapacity?: number; }): AsyncIterable<{ type: 'result'; result: IpcTransformResult; } | Progress>; }