/** * Unicode regex patterns for detecting Persian/Arabic text * Supports comprehensive character ranges and various text contexts */ export interface TextPattern { name: string; pattern: RegExp; description: string; } /** * Unicode ranges for Persian and Arabic characters */ export declare const UNICODE_RANGES: { readonly ARABIC_BASIC: "؀-ۿ"; readonly ARABIC_SUPPLEMENT: "ݐ-ݿ"; readonly ARABIC_EXTENDED_A: "ࢠ-ࣿ"; readonly ARABIC_EXTENDED_B: "ࡰ-࢟"; readonly ARABIC_PRESENTATION_A: "ﭐ-﷿"; readonly ARABIC_PRESENTATION_B: "ﹰ-"; readonly PERSIAN_SPECIFIC: "پچژگکی"; readonly ARABIC_MATH: "𞸀-𞻿"; }; /** * Combined character class for all Persian/Arabic characters */ declare const PERSIAN_ARABIC_CHARS: string; /** * Core regex patterns for Persian/Arabic text detection */ export declare const TEXT_PATTERNS: Record; /** * Context-specific patterns for different file types */ export declare const CONTEXT_PATTERNS: { JS_TS: TextPattern[]; VUE_TEMPLATE: TextPattern[]; HTML: TextPattern[]; }; /** * Utility functions for text pattern matching */ export declare class TextPatternMatcher { /** * Check if text contains Persian/Arabic characters */ static containsPersianArabic(text: string): boolean; /** * Extract all Persian/Arabic text matches from content */ static extractMatches(content: string, patterns: TextPattern[]): Array<{ text: string; pattern: string; index: number; length: number; }>; /** * Get appropriate patterns for file context */ static getPatternsForContext(context: 'js' | 'ts' | 'vue' | 'html'): TextPattern[]; /** * Clean extracted text by removing extra whitespace and quotes */ static cleanExtractedText(text: string): string; /** * Validate if extracted text is meaningful (not just punctuation or numbers) */ static isValidText(text: string): boolean; } /** * Export commonly used patterns and utilities */ export { PERSIAN_ARABIC_CHARS }; //# sourceMappingURL=text-patterns.d.ts.map