import { Page } from 'playwright';
import type { WorkflowExecutionResult } from '../types/workflow.js';
interface WorkflowStep {
    [command: string]: any;
}
interface WorkflowOptions {
    strict?: boolean;
    variables?: Record<string, string>;
    timeout?: number;
    captureOutput?: boolean;
    onStepStart?: (stepNumber: number, command: string, args: any) => void;
    onStepComplete?: (stepNumber: number, command: string, success: boolean) => void;
}
export declare class WorkflowExecutor {
    private page;
    private stepResults;
    private originalPrompt?;
    constructor(page: Page, originalPrompt?: string);
    execute(workflow: WorkflowStep[], options?: WorkflowOptions): Promise<WorkflowExecutionResult>;
    private executeStep;
    private replaceVariables;
    private extractSelectorFromArgs;
    static formatResultsForAnalysis(result: WorkflowExecutionResult, originalPrompt: string, yamlContent: string): string;
}
export {};
