import { DetectedContent, LanguageSwitcherOptions } from '../types/types'; export declare class ContentDetector { private options; private observer; private detectedContent; private watchCallback; private isWatching; constructor(options: LanguageSwitcherOptions); /** * Detect all translatable content in the current page */ detect(): DetectedContent[]; /** * Start watching for new content being added to the page */ watch(_callback: (_content: DetectedContent[]) => void): void; /** * Stop watching for content changes */ unwatch(): void; /** * Get all detected content */ getDetectedContent(): DetectedContent[]; /** * Clear detected content */ clear(): void; /** * Mark content as translated */ markAsTranslated(element: HTMLElement, translatedText: string): void; /** * Check if element should be excluded from translation */ private shouldExcludeElement; /** * Check if element contains translatable content */ private isTranslatableElement; /** * Extract text content from an element */ private extractText; /** * Check if text is translatable */ private isTranslatableText; /** * Detect content in a specific element and its children */ private detectContentInElement; }