import { AIEngine } from '../../ai/ai-engine'; import { ActionPlan, PageState, TaskContext } from '../types'; /** * ActionPlanner - Converts natural language instructions into actionable steps using AI */ export declare class ActionPlanner { private aiEngine; private promptTemplate; constructor(aiEngine: AIEngine); /** * Create an action plan from natural language instruction */ createActionPlan(instruction: string, context: TaskContext, pageState?: PageState): Promise; /** * Parse instruction using AI with improved structured output handling */ private parseInstructionWithAI; /** * Convert AI response to internal format */ private convertToInternalFormat; /** * Map schema action types to internal action types */ private mapActionType; /** * Fallback method using text generation when structured output fails */ private parseInstructionWithTextFallback; /** * Parse AI response into structured format with robust error handling */ private parseAIResponse; /** * Adapt an existing plan based on current page state using AI */ adaptPlan(currentPlan: ActionPlan, currentState: PageState): Promise; /** * Extract relevant content from page HTML for AI processing */ private extractRelevantPageContent; private extractFormElements; }