import { AutomationAdapter, AutomationSearchOptions, AutomationSearchResults, AutomationActionResult } from '../../../types'; /** * Automation adapter for extension platform * * Handles DOM automation in extension context by: * - Sending automation commands to content script * - Querying page structure via content script * - Coordinating element interactions * * @example * ```typescript * const adapter = new ExtensionAutomationAdapter(); * const results = await adapter.searchElements('search input'); * await adapter.clickElement('element-123'); * ``` */ export declare class ExtensionAutomationAdapter implements AutomationAdapter { /** * Search for elements in active tab * * @param query - Search query (natural language) * @param options - Search options * @returns Search results with matching elements */ searchElements(query: string, options?: AutomationSearchOptions): Promise; /** * Get page snapshot from active tab * * @returns Page snapshot as ARIA tree text */ getPageSnapshot(): Promise; /** * Click an element in active tab * * @param id - Element identifier from search results * @param reason - Optional reason for clicking * @returns Action result with success status */ clickElement(id: string, reason?: string): Promise; /** * Type into an element in active tab * * @param id - Element identifier from search results * @param text - Text to type * @param reason - Optional reason for typing * @returns Action result with success status */ typeIntoElement(id: string, text: string, reason?: string): Promise; /** * Focus an element in active tab * * @param id - Element identifier from search results * @param reason - Optional reason for focusing * @returns Action result with success status */ focusElement(id: string, reason?: string): Promise; /** * Scroll to an element in active tab * * @param id - Element identifier from search results * @param reason - Optional reason for scrolling * @returns Action result with success status */ scrollToElement(id: string, reason?: string): Promise; /** * Press a key in active tab * * @param key - Key name (e.g., 'Enter', 'Escape') * @param reason - Optional reason for pressing the key * @returns Action result with success status */ pressKey(key: string, reason?: string): Promise; /** * Get the active browser tab */ private getActiveTab; } //# sourceMappingURL=ExtensionAutomationAdapter.d.ts.map