/** * DOM Extraction Playground * * Interactive testing tool for DOM extraction and serialization capabilities. * This tool provides comprehensive testing across diverse websites with varying complexity levels. */ export interface ViewportSize { width: number; height: number; } export interface PlaygroundConfig { headless?: boolean; viewportSize?: ViewportSize; disableSecurity?: boolean; waitForNetworkIdle?: number; } export interface WebsiteTestResult { url: string; processingTime: number; elementCount: number; interactiveElements: number; tokenCount: number; success: boolean; error?: string; } export declare class DOMPlayground { private browserSession; private currentWebsiteIndex; private readonly sampleWebsites; private readonly difficultWebsites; private readonly difficultDescriptions; private readonly allWebsites; constructor(config?: PlaygroundConfig); /** * Get a compact website list for display */ private getWebsiteListForPrompt; /** * Start the interactive playground */ start(): Promise; /** * Run DOM extraction test on current website */ runCurrentWebsite(): Promise; /** * Count total elements in DOM state */ private countElements; /** * Count interactive elements in DOM state */ private countInteractiveElements; /** * Display test result */ private displayResult; /** * Get user input from readline */ private getUserInput; /** * Export test results to JSON */ exportResults(filePath: string): Promise; /** * Run automated performance analysis on all websites */ runPerformanceAnalysis(): Promise; } /** * CLI entry point for the DOM playground */ export declare function runDOMPlayground(): Promise; //# sourceMappingURL=extraction.d.ts.map