import { Embedded } from '@lcap/nasl-types'; import { TranslatorState, TranslatorGenerator } from '@lcap/nasl-translator'; import { ElementToVueOptions } from './ViewElement__'; import type EntityProperty from './EntityProperty__'; import type StructureProperty from './StructureProperty__'; import type Backend from './Backend__'; import type View from './View__'; import type Module from './Module__'; import type Frontend from './Frontend__'; import BaseNode from '../common/BaseNode'; import type TypeAnnotation from './TypeAnnotation__'; import type DefaultValue from './DefaultValue__'; /** * 后端全局变量 */ export declare class BackendVariable extends BaseNode { /** 类名 */ static readonly ConceptName: string; /** * 是否为抽象类 * 抽象类不能产生 concept: string */ static isAbstract: boolean; /** 继承链 */ static readonly inheritanceChain: string[]; /** * 产品概念 */ readonly concept: 'BackendVariable'; /** * 后端全局变量名称 */ name: string; /** * 后端全局变量描述 */ description?: string; /** * 类型 */ typeAnnotation: TypeAnnotation; /** * 默认值 */ defaultValue?: DefaultValue; /** * 作用域 */ scope: 'request' | 'applicaion'; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); static from(source: any, parentNode?: any, parentKey?: string): BackendVariable; /** * 设置后端全局变量名称 */ setName(name: string): void; /** * 设置后端全局变量描述 */ setDescription(description: string): void; /** * 设置作用域 */ setScope(scope: 'request' | 'applicaion'): void; /** * 祖先 Backend */ get Backend(): Backend; /** * 祖先 View */ get view(): View; /** * 祖先 Module */ get module(): Module; /** * 祖先 Frontend */ get frontend(): Frontend; /** * 自动补全的属性列表 */ completionChildren: Array; toVue(options?: ElementToVueOptions): string; toUI(state?: TranslatorState, hideDetails?: boolean): string; toJS(state?: TranslatorState): string; toEmbeddedTS(state?: import("@lcap/nasl-types/out/translator").TranslatorState): TranslatorGenerator; isEnum(): boolean; /** * 生成宿主语言的文件路径 * @param name 一般不用传,用于 rename */ getEmbeddedFilePath(name?: string): string; getNamespace(): string; toEmbeddedTSFile(): Embedded.TSFileGenerator; toEmbeddedDeclarationTSFile(): Embedded.DeclarationTSFileResult; toEmbeddedTSInProcess(state?: TranslatorState): TranslatorGenerator; /** * 设置数据类型 * @param typeAnnotation 类型标注对象 */ setDataType(typeAnnotation: TypeAnnotation): Promise; /** * 设置数据类型 * @param typeAnnotation 类型唯一标识 */ setDataType(typeKey: string): Promise; _setDataType(typeAnnotation: TypeAnnotation | string): Promise; static getDefaultOptions(): {}; /** * 是否可编辑 * */ get readonly(): boolean; toNaturalTS(state?: import("@lcap/nasl-types/out/translator").TranslatorState): string; } export default BackendVariable; //# sourceMappingURL=BackendVariable__.d.ts.map