import type Module from './Module__'; import BaseNode from '../common/BaseNode'; import type Logic from './Logic__'; import type ViewComponentDeclaration from './ViewComponentDeclaration__'; import type ViewComponent from './ViewComponent__'; /** * 前端库 */ export declare class FrontendLibrary extends BaseNode { /** 类名 */ static readonly ConceptName: string; /** * 是否为抽象类 * 抽象类不能产生 concept: string */ static isAbstract: boolean; /** 继承链 */ static readonly inheritanceChain: string[]; /** * 产品概念 */ readonly concept: 'FrontendLibrary'; /** * 名称与type保持一致 */ name: 'pc' | 'h5'; /** * PC/H5 端 */ type: 'pc' | 'h5'; /** * 框架标识 */ frameworkKind: 'react' | 'vue2'; /** * UI库 */ frameworkUI?: string; /** * 依赖库逻辑声明列表 */ logics: Array; /** * 依赖库组件声明列表 */ viewComponents: Array; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); static from(source: any, parentNode?: any, parentKey?: string): FrontendLibrary; getLogicExistingNames(excludedList?: Array): string[]; getLogicUniqueName(name?: string): string; /** * 插入逻辑 * @internal * @param name 逻辑名称,如果不填会自动生成一个唯一名称 */ _insertLogicAt(name: string, index: number): Logic; /** * 插入逻辑 * @internal * @param logicOptions 逻辑参数 */ _insertLogicAt(logicOptions: Partial, index: number): Logic; /** * 插入逻辑 * @internal * @param logic 已有的逻辑实例 */ _insertLogicAt(logic: Logic, index: number): Logic; /** * 插入逻辑 * @param name 逻辑名称,如果不填会自动生成一个唯一名称 */ insertLogicAt(name: string, index: number): Logic; /** * 插入逻辑 * @param logicOptions 逻辑参数 */ insertLogicAt(logicOptions: Partial, index: number): Logic; /** * 插入逻辑 * @param logic 已有的逻辑实例 */ insertLogicAt(logic: Logic, index: number): Logic; /** * 添加逻辑 * @internal * @param name 逻辑名称,如果不填会自动生成一个唯一名称 */ _addLogic(name?: string): Logic; /** * 添加逻辑 * @internal * @param logicOptions 逻辑参数 */ _addLogic(logicOptions: Partial): Logic; /** * 添加逻辑 * @internal * @param logic 已有的逻辑实例 */ _addLogic(logic: Logic): Logic; /** * 添加逻辑 * @internal * @param name 逻辑名称,如果不填会自动生成一个唯一名称 */ addLogic(name?: string): Logic; /** * 添加逻辑 * @param logicOptions 逻辑参数 */ addLogic(logicOptions: Partial): Logic; /** * 添加逻辑 * @param logic 已有的逻辑实例 */ addLogic(logic: Logic): Logic; getViewComponentDeclarationExistingNames(excludedList?: Array): string[]; getViewComponentDeclarationUniqueName(name?: string): string; /** * 插入页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ _insertViewComponentDeclarationAt(name: string, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @internal * @param viewComponentDeclarationOptions 页面组件参数 */ _insertViewComponentDeclarationAt(viewComponentDeclarationOptions: Partial, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @internal * @param viewComponentDeclaration 已有的页面组件实例 */ _insertViewComponentDeclarationAt(viewComponentDeclaration: ViewComponentDeclaration, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ insertViewComponentDeclarationAt(name: string, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @param viewComponentDeclarationOptions 页面组件参数 */ insertViewComponentDeclarationAt(viewComponentDeclarationOptions: Partial, index: number): ViewComponentDeclaration; /** * 插入页面组件 * @param viewComponentDeclaration 已有的页面组件实例 */ insertViewComponentDeclarationAt(viewComponentDeclaration: ViewComponentDeclaration, index: number): ViewComponentDeclaration; /** * 添加页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ _addViewComponentDeclaration(name?: string): ViewComponentDeclaration; /** * 添加页面组件 * @internal * @param viewComponentDeclarationOptions 页面组件参数 */ _addViewComponentDeclaration(viewComponentDeclarationOptions: Partial): ViewComponentDeclaration; /** * 添加页面组件 * @internal * @param viewComponentDeclaration 已有的页面组件实例 */ _addViewComponentDeclaration(viewComponentDeclaration: ViewComponentDeclaration): ViewComponentDeclaration; /** * 添加页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ addViewComponentDeclaration(name?: string): ViewComponentDeclaration; /** * 添加页面组件 * @param viewComponentDeclarationOptions 页面组件参数 */ addViewComponentDeclaration(viewComponentDeclarationOptions: Partial): ViewComponentDeclaration; /** * 添加页面组件 * @param viewComponentDeclaration 已有的页面组件实例 */ addViewComponentDeclaration(viewComponentDeclaration: ViewComponentDeclaration): ViewComponentDeclaration; getViewComponentExistingNames(excludedList?: Array): string[]; getViewComponentUniqueName(name?: string): string; /** * 插入页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ _insertViewComponentAt(name: string, index: number): ViewComponent; /** * 插入页面组件 * @internal * @param viewComponentOptions 页面组件参数 */ _insertViewComponentAt(viewComponentOptions: Partial, index: number): ViewComponent; /** * 插入页面组件 * @internal * @param viewComponent 已有的页面组件实例 */ _insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent; /** * 插入页面组件 * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ insertViewComponentAt(name: string, index: number): ViewComponent; /** * 插入页面组件 * @param viewComponentOptions 页面组件参数 */ insertViewComponentAt(viewComponentOptions: Partial, index: number): ViewComponent; /** * 插入页面组件 * @param viewComponent 已有的页面组件实例 */ insertViewComponentAt(viewComponent: ViewComponent, index: number): ViewComponent; /** * 添加页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ _addViewComponent(name?: string): ViewComponent; /** * 添加页面组件 * @internal * @param viewComponentOptions 页面组件参数 */ _addViewComponent(viewComponentOptions: Partial): ViewComponent; /** * 添加页面组件 * @internal * @param viewComponent 已有的页面组件实例 */ _addViewComponent(viewComponent: ViewComponent): ViewComponent; /** * 添加页面组件 * @internal * @param name 页面组件名称,如果不填会自动生成一个唯一名称 */ addViewComponent(name?: string): ViewComponent; /** * 添加页面组件 * @param viewComponentOptions 页面组件参数 */ addViewComponent(viewComponentOptions: Partial): ViewComponent; /** * 添加页面组件 * @param viewComponent 已有的页面组件实例 */ addViewComponent(viewComponent: ViewComponent): ViewComponent; /** * 删除逻辑 * @param name 逻辑名称 */ removeLogic(name: string): void; /** * 删除逻辑 * @param logic 已有的逻辑实例 */ removeLogic(logic: Logic): void; /** * 删除页面组件 * @param name 页面组件名称 */ removeViewComponentDeclaration(name: string): void; /** * 删除页面组件 * @param viewComponentDeclaration 已有的页面组件实例 */ removeViewComponentDeclaration(viewComponentDeclaration: ViewComponentDeclaration): void; /** * 删除页面组件 * @param name 页面组件名称 */ removeViewComponent(name: string): void; /** * 删除页面组件 * @param viewComponent 已有的页面组件实例 */ removeViewComponent(viewComponent: ViewComponent): void; /** * 祖先 Module */ get module(): Module; getNamespace(): string; getTsNamespace(): string; toNaturalTS(state?: import("@lcap/nasl-types/out/translator").TranslatorState): string; } export default FrontendLibrary; //# sourceMappingURL=FrontendLibrary__.d.ts.map