/** * Vue template parser for extracting Persian/Arabic text from Vue Single File Components * Handles templates, attributes, directives, and interpolations */ import { TextMatch } from '../types'; export interface VueTextMatch extends TextMatch { section: 'template' | 'script' | 'style'; elementType?: string; attributeName?: string; directiveName?: string; isInterpolation?: boolean; isDirective?: boolean; isAttribute?: boolean; isTextContent?: boolean; } export interface VueParseResult { template: VueTextMatch[]; script: VueTextMatch[]; style: VueTextMatch[]; errors: string[]; } /** * Vue Single File Component parser */ export declare class VueParser { /** * Parse Vue SFC content and extract Persian/Arabic text */ parseVueFile(content: string, filePath: string): Promise; /** * Parse Vue template section */ private parseTemplateSection; /** * Parse script section (delegate to AST parser if needed) */ private parseScriptSection; /** * Parse style section */ private parseStyleSection; /** * Extract Vue interpolations {{ }} */ private extractInterpolations; /** * Extract attribute values */ private extractAttributeValues; /** * Extract Vue directive values */ private extractDirectiveValues; /** * Extract text content between HTML tags */ private extractTextContent; /** * Get the element type for text content */ private getElementType; /** * Calculate line number from string index */ private calculateLineNumber; /** * Calculate column number from string index */ private calculateColumnNumber; /** * Check if a file is a Vue Single File Component */ static isVueFile(filePath: string): boolean; /** * Extract only template matches from Vue file */ parseTemplateOnly(content: string, filePath: string): Promise; /** * Get Vue-specific parsing statistics */ static getParsingStats(results: VueParseResult[]): { totalFiles: number; totalMatches: number; templateMatches: number; scriptMatches: number; styleMatches: number; interpolations: number; directives: number; attributes: number; textContent: number; }; } export default VueParser; //# sourceMappingURL=vue-parser.d.ts.map