import { TranslatorState, TranslatorGenerator } from '@lcap/nasl-translator'; import type Enum from './Enum__'; import type Module from './Module__'; type changeType = 'up' | 'down'; import BaseNode from '../common/BaseNode'; import type StaticString from './StaticString__'; /** * 枚举值 */ export declare class EnumItem extends BaseNode { /** 类名 */ static readonly ConceptName: string; /** * 是否为抽象类 * 抽象类不能产生 concept: string */ static isAbstract: boolean; /** 继承链 */ static readonly inheritanceChain: string[]; /** * 产品概念 */ readonly concept: 'EnumItem'; /** * 枚举值的值 */ value: string; /** * 枚举值标题 */ label: StaticString; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); static from(source: any, parentNode?: any, parentKey?: string): EnumItem; static createProtoTypeOnly(source: Partial): EnumItem; /** * 设置枚举值的值 */ setValue(value: string): void; /** * 设置枚举值标题 */ setLabel(label: StaticString): void; name?: string; getTokenKeyWithNamespace(): string; /** * 删除静态字符串 * @param name 静态字符串名称 */ removeLabel(name: string): void; /** * 删除静态字符串 * @param label 已有的静态字符串实例 */ removeLabel(label: StaticString): void; __removeStaticString(staticString: StaticString): import("@lcap/nasl-types/out/concepts").Params; /** * 祖先 Enum */ get enumeration(): Enum; /** * 祖先 Module */ get module(): Module; getNamespace(): string; getNamespaceForRefMgr(): 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; setName(value: string): void; getValue(): string; toJS(state?: TranslatorState): string; /** * 设置枚举值标题 */ setLabelValue(label: string): void; /** * 属性上移 */ moveUp(): void; /** * 属性下移 */ moveDown(): void; /** * 数组移动位置 */ static changeSort(arr: any[], index: number, type: changeType): any[]; } export default EnumItem; //# sourceMappingURL=EnumItem__.d.ts.map