import type { z } from 'zod';
import type { AIBrowserAction, AIBrowserAgentConfig } from './ai-browser-agent.types.js';
/**
 * AI Browser Agent for error recovery and data extraction.
 *
 * Uses vision AI to analyze screenshots and suggest recovery actions
 * or extract structured data. No DOM inspection needed — the AI
 * looks at the screenshot and decides coordinates directly.
 */
export declare class AIBrowserAgent {
    private sessionId;
    private context?;
    private credentials?;
    constructor(config: AIBrowserAgentConfig);
    /**
     * Suggest a recovery action for a failed step.
     * Takes a screenshot and lets the AI decide what to do.
     */
    suggestRecoveryAction(task: string, error: string): Promise<AIBrowserAction>;
    /**
     * Extract structured data from the page using AI vision.
     */
    extractData<T>(schema: z.ZodType<T>, task: string): Promise<T | null>;
    /**
     * Execute the suggested recovery action on the page.
     */
    executeAction(action: AIBrowserAction): Promise<boolean>;
    private captureScreenshot;
    private getCurrentUrl;
    private callAI;
    /**
     * Parse the AI response into a typed action.
     */
    private parseRecoveryAction;
    private hasValidCoordinates;
    /**
     * Generate a human-readable description of a Zod schema.
     */
    private describeZodSchema;
}
//# sourceMappingURL=ai-browser-agent.d.ts.map