import { EventEmitter } from 'events'; import { ScenarioRunJob, ScenarioResponse } from './types'; import { FileHandler } from './file-handler'; import { AuthConfig } from './auth-config'; import { LLMProvider } from './llm-provider'; import { ProgressReporter } from './progress-reporter'; import { AgentConfig, SiteLearnings } from './orchestrator'; interface OutputChannel { appendLine: (text: string) => void; } export declare class ScenarioWorker extends EventEmitter { private initialized; private sessionId; private llmFacade; private fileHandler?; private outputChannel?; private logger?; private progressReporter?; private currentJobId?; private orchestratorAgent?; /** * Get SOM handler from orchestrator agent (for bug artifact analysis) */ getSomHandler(): import("./orchestrator").PageSoMHandler | undefined; private toolRegistry?; private orchestratorConfig?; private debugMode; constructor(fileHandler?: FileHandler, llmProvider?: LLMProvider, progressReporter?: ProgressReporter, authConfig?: AuthConfig, backendUrl?: string, options?: { orchestratorConfig?: Partial; debugMode?: boolean; }, outputChannel?: OutputChannel); /** * Initialize orchestrator mode with tools */ private initializeOrchestrator; setLogger(logger: (message: string, level?: 'log' | 'error' | 'warn') => void): void; private log; private logError; /** * Report step progress to progress reporter */ private reportStepProgress; /** * Report job progress to progress reporter */ private reportJobProgress; initialize(): Promise; processScenarioJob(job: ScenarioRunJob, existingSiteLearnings?: SiteLearnings): Promise; /** * Simple merge of site learnings (accumulate across steps) */ private mergeSiteLearningsSimple; /** * Execute exploration mode using orchestrator */ executeExploration(page: any, explorationConfig: any, jobId: string, existingSiteLearnings?: SiteLearnings): Promise; cleanup(): Promise; } export {}; //# sourceMappingURL=scenario-worker-class.d.ts.map