import { CyberneticIntentClassifier } from './CyberneticIntentClassifier.js'; import type { AgentAction, ActionResult, IntentClassification, AgentConfig } from './types.js'; /** * DOM interaction agent * * Executes actions on the host page based on classified intent. * Supports navigation, form filling, clicking, scrolling, and more. */ export declare class CyberneticAgent { private config; private classifier; private highlightOverlay; private actionCount; private lastActionReset; constructor(config: AgentConfig); /** * Interpret user message and determine action * * @param message - User's message to interpret * @returns Intent classification with suggested action */ interpretIntent(message: string): IntentClassification; /** * Execute an agent action * * @param action - The action to execute * @returns Result of action execution */ executeAction(action: AgentAction): Promise; /** * Check if an action type is allowed by configuration */ private isActionAllowed; /** * Check if selector is allowed (not blocked) */ private isSelectorAllowed; /** * Navigate to a URL */ private navigate; /** * Fill a form field */ private fillForm; /** * Click an element */ private clickElement; /** * Trigger a modal by clicking its trigger element */ private triggerModal; /** * Scroll to an element */ private scrollToElement; /** * Highlight an element with animation */ highlightElement(selector: string): Promise; /** * Execute a custom action callback */ private executeCustomAction; /** * Check if URL is internal to the current site */ private isInternalUrl; /** * Try client-side navigation for SPAs */ private tryClientSideNavigation; /** * Validate navigation URL */ private validateNavigationUrl; /** * Sanitize CSS selector to prevent injection */ private sanitizeSelector; /** * Validate custom action is in whitelist */ private isAllowedCustomAction; /** * Remove highlight overlay */ private removeHighlight; /** * Inject required styles */ private injectStyles; /** * Sleep utility */ private sleep; /** * Get agent configuration */ getConfig(): AgentConfig; /** * Get the intent classifier */ getClassifier(): CyberneticIntentClassifier; /** * Reset action count (for testing) */ resetActionCount(): void; } //# sourceMappingURL=CyberneticAgent.d.ts.map