import { BrowserManagerImpl } from './managers/browser-manager'; import { AIConfig, BrowserAdapter, BrowserConfig, BrowserType, ExecutionOptions, TaskResult } from './types'; /** * Main Browser Automation Framework class */ export declare class BrowserAutomation { private browserManager; private registry; private config; private aiConfig?; private actionEngine?; private aiEngine?; constructor(config?: Partial); /** * Initialize the framework with the specified configuration */ initialize(): Promise; /** * Execute a natural language task */ execute(instruction: string, options?: ExecutionOptions): Promise; /** * Execute a task using the smart ActionEngine (same as execute()) * This method is identical to execute() - both use hierarchical planning * Kept for backward compatibility with existing code */ executeTask(instruction: string): Promise; /** * Navigate to a URL */ navigate(url: string): Promise; /** * Click an element */ click(selector: string): Promise; /** * Type text into an element */ type(selector: string, text: string): Promise; /** * Take a screenshot */ screenshot(path?: string): Promise; /** * Get page content */ getContent(): Promise; /** * Switch to a different browser adapter */ switchAdapter(adapterName: string): Promise; /** * Switch to a different browser type */ switchBrowser(browserType: BrowserType): Promise; /** * Register a custom adapter */ registerAdapter(adapter: BrowserAdapter): void; /** * Get available adapters */ getAvailableAdapters(): string[]; /** * Get current browser information */ getBrowserInfo(): { adapter: string; version: string; connected: boolean; } | null; /** * Get the browser manager instance (for advanced usage) */ getBrowserManager(): BrowserManagerImpl; /** * Close the browser and cleanup */ close(): Promise; /** * Execute basic instruction parsing (simplified) */ private executeBasicInstruction; } export { BrowserAdapterRegistry } from './adapters/adapter-registry'; export { PlaywrightAdapter } from './adapters/playwright/adapter'; export { PuppeteerAdapter } from './adapters/puppeteer/adapter'; export { AIEngine } from './ai/ai-engine'; export { ActionEngine } from './engine/action-engine'; export { UnifiedPlanner } from './engine/planning/unified-planner'; export { ExecutionStream, executionStream } from './streaming/execution-stream'; export * from './types';