import type { InnoSetupConfig } from "./types"; /** * Inno Setup 脚本解析器 * 将 .iss 文件解析为 InnoSetupConfig 对象 */ export declare class InnoScriptParser { /** * 解析 ISS 文件 * @param filePath .iss 文件路径 * @returns 解析后的配置 * @throws ParseError 如果文件无法读取 */ static parseFile(filePath: string): InnoSetupConfig; /** * 解析 ISS 脚本内容 * @param content ISS 脚本内容 * @param options 解析选项 * @returns 解析后的配置 */ static parse(content: string, options?: { preserveDefineReferences?: boolean; }): InnoSetupConfig; /** * 从行中提取 #define 指令 */ private static extractDefines; /** * 解析 #define 的值 */ private static parseDefineValue; /** * 解析字符串拼接表达式 */ private static parseConcatenation; /** * 解析 StringChange 函数调用 */ private static parseStringChange; /** * 替换 {#ConstantName} 引用为实际值 */ private static replaceDefines; /** * 解析所有段落 */ private static parseSections; /** * 解析段落中的单行 */ private static parseSectionLine; /** * 解析 Setup 段落行 */ private static parseSetupLine; /** * 从行中解析参数(Name: "value"; Param: "value") */ private static parseParams; /** * 解析 Languages 段落行 */ private static parseLanguagesLine; /** * 解析 Tasks 段落行 */ private static parseTasksLine; /** * 解析 Types 段落行 */ private static parseTypesLine; /** * 解析 Components 段落行 */ private static parseComponentsLine; /** * 解析 Files 段落行 */ private static parseFilesLine; /** * 解析 Dirs 段落行 */ private static parseDirsLine; /** * 解析 Icons 段落行 */ private static parseIconsLine; /** * 解析 INI 段落行 */ private static parseINILine; /** * 解析 InstallDelete 段落行 */ private static parseInstallDeleteLine; /** * 解析 UninstallDelete 段落行 */ private static parseUninstallDeleteLine; /** * 解析 Registry 段落行 */ private static parseRegistryLine; /** * 解析 Run 段落行 */ private static parseRunLine; /** * 解析 UninstallRun 段落行 */ private static parseUninstallRunLine; /** * 解析 Messages 段落行 */ private static parseMessagesLine; /** * 解析 CustomMessages 段落行 */ private static parseCustomMessagesLine; } //# sourceMappingURL=parser.d.ts.map