import { TranslatorState, Module } from '../../index'; interface GeneratedFile { path: string; content: string; } export type FewModuleType = 'extension' | 'interface' | 'connector' | 'customInterface'; export type DependencyCategory = 'uilibs' | 'extensions' | 'apis' | 'connectors'; export type DependencyNamespace = 'extensions' | 'apis' | 'connectors'; /** * 将应用依赖转换为 NaturalTS 文件 * @param dependencies - 依赖列表 * @param state - 编译器状态 * @returns 生成的依赖文件列表 */ export declare const convertDependenciesToNaturalTS: (dependencies: Module[], withTypeLibraryDefinition: { [name: string]: string; }, state: TranslatorState) => GeneratedFile[]; /** * 将 NASL 对象转换为文件 * @param params - 包含 NASL 应用对象的参数 * @param params.app - NASL 应用实例 * @param params.withTypeLibraryDefinition - 可选,往沙箱写时必传,前端依赖库的.d.ts文件 * @param params.range - 生成文件的范围,可选值:'ts'(仅生成 TypeScript 文件)、'tsx'(仅生成 TSX 文件)、'all'(默认,生成所有类型的文件) * @returns 生成的文件列表,每个文件包含路径和内容 */ export declare const nasl2Files: ({ app, withTypeLibraryDefinition, range, }: { app: any; withTypeLibraryDefinition?: { [name: string]: string; }; range: 'ts' | 'tsx' | 'all'; }) => GeneratedFile[]; export {}; //# sourceMappingURL=nasl2Files.d.ts.map