import type { PnPConfiguration } from '../../types.js'; import { StylelintWorkerProcess } from '../../worker/worker-process.js'; import { type LoggingService } from '../infrastructure/logging.service.js'; import { WorkerProcessService } from './worker-process.service.js'; export type WorkerContext = { workspaceFolder: string; workerRoot: string; pnpConfig?: PnPConfiguration; environmentKey?: string; }; export declare class WorkerRegistryService { #private; constructor(loggingService: LoggingService, workerFactory: WorkerProcessService); runWithWorker(context: WorkerContext, executor: (worker: StylelintWorkerProcess) => Promise): Promise; notifyWorkspaceActivity(workspaceFolder: string): void; notifyFileActivity(filePath: string | undefined): void; dispose(workspaceFolder: string): void; disposeAll(): void; }