import { PathResolver } from '../../utils/path-resolver'; export interface WxmlPurgeAnalysisResult { wxmlFilePaths: Set; tagNames: Set; staticClassNames: Set; dynamicClassValues: Set; riskyDynamicClassPatterns: Array<{ filePath: string; expression: string; }>; } /** * Analyzes a WXML file and its imports/includes to extract tags, static classes, * and dynamic class expressions for PurgeCSS. * * @param initialWxmlFilePath Path to the initial WXML file to analyze * @param pathResolver Instance of PathResolver to resolve import/include paths * @param visited Set of already visited files (to prevent infinite loops and redundant work) * @returns Promise */ export declare function analyzeWxmlForPurge(initialWxmlFilePath: string, pathResolver: PathResolver, visited?: Set): Promise; /** * Checks if a WXML class expression (the content inside {{...}}) is safe. * Safe: simple literals, or ternary operators yielding simple literals. * Unsafe: contains '+' for concatenation, unless it's part of a more complex, unhandled safe pattern. * @param expression The content of the class binding, e.g., "condition ? 'classA' : 'classB'" or "'prefix-' + varName" */ export declare function isSafeClassExpression(expression: string): boolean;