/** * Content Metadata Utilities * Extract metadata tags (dubbed, subtitled, etc.) from content titles */ /** * Extract metadata tags from a content title * Returns an array of tags like ["dubbed", "subtitled", "arabic"] */ export declare function extractContentMetadata(title: string): string[]; /** * Clean title by removing metadata tags for display/search * This is used to normalize titles for TMDb matching */ export declare function cleanTitleForMatching(title: string): string; /** * Detect the primary script/language of a title * Returns the detected script type for search optimization */ export declare function detectTitleScript(title: string): 'latin' | 'arabic' | 'cjk' | 'cyrillic' | 'mixed' | 'unknown'; /** * Get the TMDb language code for a detected script * Used for searching content in non-Latin languages */ export declare function getLanguageForScript(script: ReturnType): string | null; /** * Extract the Latin (English/Western) portion of a multilingual title * Handles cases like: * - "Red Sonja (2025) ريد سونيا" -> "Red Sonja (2025)" * - "Gladiator II مصارع 2" -> "Gladiator II" * - "قصة حب" -> "قصة حب" (pure Arabic, returns as-is for native search) * - "The Matrix" -> "The Matrix" (no change) */ export declare function extractLatinTitle(title: string): string; /** * Extract year from title * "Big World (2024)" -> 2024 * "Big World 2023" -> 2023 * "2024 Big World" -> 2024 */ export declare function extractYearFromTitle(title: string): number | null; /** * Remove year from title for cleaner TMDb search * "Big World (2024)" -> "Big World" * "2024 Big World" -> "Big World" * "Big World 2024" -> "Big World" */ export declare function stripYearFromTitle(title: string): string; //# sourceMappingURL=content-metadata.d.ts.map