import { Worker as JestWorker } from 'next/dist/compiled/jest-worker'; type FarmOptions = ConstructorParameters[1]; export declare class Worker { private _worker; constructor(workerPath: string, options: FarmOptions & { timeout?: number; onRestart?: (method: string, args: any[], attempts: number) => void; exposedMethods: ReadonlyArray; enableWorkerThreads?: boolean; }); end(): ReturnType; /** * Quietly end the worker if it exists */ close(): void; } export {};