import { ValidationResult, I18nIntegrationConfig, TextMatch } from '../types'; import { NuxtValidationOptions, NuxtValidationResult } from './nuxt-integration-validator'; /** * Validation options for different validation checks */ export interface ValidationOptions { checkReplacedStrings?: boolean; checkTranslationKeys?: boolean; checkSyntax?: boolean; checkImports?: boolean; sourceDirectories?: string[]; excludePatterns?: string[]; } /** * Detailed validation report for a single file */ export interface FileValidationResult { filePath: string; isValid: boolean; errors: string[]; warnings: string[]; unreplacedStrings: TextMatch[]; missingKeys: string[]; syntaxErrors: string[]; importIssues: string[]; } /** * Comprehensive validation report */ export interface ComprehensiveValidationResult extends ValidationResult { fileResults: FileValidationResult[]; summary: { totalFiles: number; validFiles: number; filesWithErrors: number; totalUnreplacedStrings: number; totalMissingKeys: number; totalSyntaxErrors: number; }; } /** * Comprehensive validation system for i18n integration */ export declare class ValidationSystem { private config; private projectRoot; private nuxtValidator; constructor(config: I18nIntegrationConfig, projectRoot?: string); /** * Perform comprehensive validation of i18n integration */ validateIntegration(options?: ValidationOptions): Promise; /** * Validate a single file */ validateFile(filePath: string, options: { checkReplacedStrings: boolean; checkTranslationKeys: boolean; checkSyntax: boolean; checkImports: boolean; }): Promise; /** * Find unreplaced Persian/Arabic strings in file content */ private findUnreplacedStrings; /** * Check if a string is already wrapped in $t() call */ private isStringAlreadyWrapped; /** * Find missing translation keys referenced in code */ private findMissingTranslationKeys; /** * Validate syntax of transformed code */ private validateSyntax; /** * Validate JavaScript/TypeScript syntax using Babel parser */ private validateJavaScriptSyntax; /** * Basic validation of Vue template syntax */ private validateTemplateSyntax; /** * Validate import statements and i18n setup */ private validateImports; /** * Load translation file content */ private loadTranslationFile; /** * Get all source files to validate */ private getSourceFiles; /** * Recursively get files from directory */ private getFilesRecursively; /** * Check if file is a source file that should be validated */ private isSourceFile; /** * Generate validation summary */ private generateSummary; /** * Extract template section from Vue file */ private extractVueTemplate; /** * Extract script section from Vue file */ private extractVueScript; /** * Get line number from character index */ private getLineNumber; /** * Get column number from character index */ private getColumnNumber; /** * Validate Nuxt.js integration with i18n system */ validateNuxtIntegration(options?: NuxtValidationOptions): Promise; } //# sourceMappingURL=validation-system.d.ts.map