import { StepContext } from './step-context'; /** * Generic contextual analyzer that uses previous step knowledge to improve current step execution * Provides framework-agnostic selector adaptation and step improvement */ export declare class ContextualStepAnalyzer { constructor(); /** * Improve a step using context from only the immediately previous step */ improveStepWithContext(step: any, stepContext: StepContext, successfulSelectors: string[], currentPageContent: string): Promise; /** * Check if the previous step context is relevant to the current step */ private isRelevantContext; /** * Check if an action is form-related */ private isFormAction; /** * Adapt a successful selector pattern for a new step */ private adaptSelectorPattern; /** * Generate flexible selector for any element type */ private generateFlexibleSelector; /** * Extract relevant keyword from step description */ private extractKeywordFromDescription; /** * Adapt form field selectors based on description */ private adaptFormFieldSelector; /** * Adapt button selectors based on description */ private adaptButtonSelector; }