/** * Language detector — identify page language from HTML attributes and content analysis. * * Sources (in priority order): * 1. attribute * 2. header * 3. hreflang alternate links * 4. Content-based n-gram fingerprint (detects top 20 languages) * * Used to: route pages to the correct markdown processor, group screens by locale, * and detect missing hreflang implementations. */ import type { Page } from 'playwright'; export interface LanguageDetectionResult { url: string; declaredLang: string; detectedLang: string; confidence: 'high' | 'medium' | 'low'; alternates: Record; isMultilingual: boolean; } export declare function detectLanguage(page: Page, url: string): Promise;