import type { 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 { Diagnostic } from '@lcap/nasl-types'; import type ProcessV2 from './ProcessV2__'; import type Logic from './Logic__'; import type Module from './Module__'; import type Connector from './Connector__'; import type View from './View__'; import type Frontend from './Frontend__'; import type ProcessElement from './ProcessElement__'; import type Process from './Process__'; import type AuthInterface from './AuthInterface__'; import type AuthLogicForCallInterface from './AuthLogicForCallInterface__'; import BaseNode from '../common/BaseNode'; import type TypeAnnotation from './TypeAnnotation__'; import type DefaultValue from './DefaultValue__'; /** * 变量 */ export declare class Variable extends BaseNode { /** 类名 */ static readonly ConceptName: string; /** * 是否为抽象类 * 抽象类不能产生 concept: string */ static isAbstract: boolean; /** 继承链 */ static readonly inheritanceChain: string[]; /** * 产品概念 */ readonly concept: 'Variable' | 'FrontendVariable'; /** * 变量名称 */ name: string; /** * 变量描述 */ description?: string; /** * 类型 */ typeAnnotation?: TypeAnnotation; /** * 默认值 */ defaultValue?: DefaultValue; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); static from(source: any, parentNode?: any, parentKey?: string): Variable; /** * 设置变量名称 */ setName(name: string): void; /** * 设置变量描述 */ setDescription(description: string): void; /** * 祖先 Logic */ get logic(): Logic; /** * 祖先 Module */ get module(): Module; /** * 祖先 Connector */ get connector(): Connector; /** * 祖先 View */ get view(): View; /** * 祖先 Frontend */ get frontend(): Frontend; /** * 祖先 ProcessElement */ get processElement(): ProcessElement; /** * 祖先 Process */ get process(): Process; /** * 祖先 ProcessV2 */ get processV2(): ProcessV2; /** * 祖先 AuthInterface */ get AuthLogic(): AuthInterface; /** * 祖先 AuthLogicForCallInterface */ get AuthLogicForCallInterface(): AuthLogicForCallInterface; get directory(): import("./Directory__").Directory; static createProtoTypeOnly(source: Partial): Variable; /** * 自动补全的属性列表 */ completionChildren: Array; __aStructureError: Diagnostic.Diagnostic | undefined; get __isVirtual(): boolean | Boolean; toVue(options?: ElementToVueOptions): string; toUI(state?: TranslatorState, hideDetails?: boolean): string; toJS(state?: TranslatorState): string; toEmbeddedTS(state?: import("@lcap/nasl-types/out/translator").TranslatorState): TranslatorGenerator; toNaturalTS(state?: import("@lcap/nasl-types/out/translator").TranslatorState): string; toTextualNASL(state?: import("@lcap/nasl-types/out/translator").TranslatorState): string; isEnum(): boolean; getNamespace(): string; /** * 生成宿主语言的文件路径 * @param name 一般不用传,用于 rename */ getEmbeddedFilePath(name?: string): string; toEmbeddedTSFile(): Embedded.TSFileGenerator; toEmbeddedDeclarationTSFile(): Embedded.DeclarationTSFileResult; toEmbeddedTSInProcess(state?: import("@lcap/nasl-types/out/translator").TranslatorState): TranslatorGenerator; /** * 设置数据类型 * @param typeAnnotation 类型标注对象 */ setDataType(typeAnnotation: TypeAnnotation): Promise; /** * 设置数据类型 * @param typeAnnotation 类型唯一标识 */ setDataType(typeKey: string): Promise; static getDefaultOptions(): {}; /** * 是否可编辑 * */ get readonly(): boolean; } export default Variable; //# sourceMappingURL=Variable__.d.ts.map