sicua
Version:
A tool for analyzing project structure and dependencies
36 lines (35 loc) • 1.61 kB
TypeScript
import { TranslationFile, TranslationKey } from "../../../types/translation.types";
/**
* Creates a logger function for translation analysis
* @param projectPath The project path for saving logs
* @param debugMode Whether debug mode is enabled
* @returns Object with log function and utility methods
*/
export declare function createLogger(projectPath: string, debugMode?: boolean): {
log: (message: string, ...additionalData: any[]) => void;
saveDebugLogs: () => void;
getLogs: () => string[];
};
/**
* Writes a detailed debug file with analysis information
* @param projectPath Project path
* @param translationFiles Translation files found
* @param translationKeys Translation keys found
* @param sourceFiles Source files analyzed
* @param mainTranslationFile Main translation file
* @param logs Debug logs
*/
export declare function writeDetailedDebugFile(projectPath: string, translationFiles: TranslationFile[], translationKeys: TranslationKey[], sourceFiles: Map<string, any>, mainTranslationFile: TranslationFile | null, logs: string[]): void;
/**
* Validates translation analysis results for debugging
* @param translationKeys Translation keys found
* @param translationFiles Translation files found
* @returns Validation messages
*/
export declare function validateResults(translationKeys: TranslationKey[], translationFiles: TranslationFile[]): string[];
/**
* Formats a TranslationKey for log output
* @param key The translation key
* @returns Formatted string representation
*/
export declare function formatTranslationKeyForLog(key: TranslationKey): string;