import { TranslatorGenerator } from '@lcap/nasl-translator'; import type Interface from './Interface__'; 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 BaseNode from '../common/BaseNode'; import type TypeAnnotation from './TypeAnnotation__'; import type DefaultValue from './DefaultValue__'; /** * 接口参数 */ export declare class InterfaceParam extends BaseNode { /** 类名 */ static readonly ConceptName: string; /** * 是否为抽象类 * 抽象类不能产生 concept: string */ static isAbstract: boolean; /** 继承链 */ static readonly inheritanceChain: string[]; /** * 产品概念 */ readonly concept: 'InterfaceParam'; /** * 接口参数名称 */ name: string; /** * 接口参数描述 */ description?: string; /** * 类型 */ typeAnnotation: TypeAnnotation; /** * 参数位置 */ in: 'query' | 'path' | 'body' | 'header' | 'cookie'; /** * 是否必填 */ required?: boolean; /** * 默认值 */ defaultValue?: DefaultValue; optional?: boolean; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); static from(source: any, parentNode?: any, parentKey?: string): InterfaceParam; /** * 设置接口参数名称 */ setName(name: string): void; /** * 设置接口参数描述 */ setDescription(description: string): void; /** * 设置参数位置 */ setIn(inWhich: 'query' | 'path' | 'body' | 'header' | 'cookie'): void; /** * 设置是否必填 */ setRequired(required: boolean): void; /** * 祖先 Interface */ get interface(): Interface; /** * 祖先 Module */ get module(): Module; /** * 祖先 Connector */ get connector(): Connector; /** * 祖先 View */ get view(): View; /** * 祖先 Frontend */ get frontend(): Frontend; /** * 祖先 ProcessElement */ get processElement(): ProcessElement; /** * 祖先 Process */ get process(): Process; /** * 设置数据类型 * @param typeAnnotation 类型标注对象 */ setDataType(typeAnnotation: TypeAnnotation): void; /** * 设置数据类型 * @param typeAnnotation 类型唯一标识 */ setDataType(typeKey: string): void; /** * 是否可编辑 * */ get nodeReadonly(): boolean; toEmbeddedTS(state?: import("@lcap/nasl-types/out/translator").TranslatorState, isOptionalParameter?: boolean): TranslatorGenerator; toNaturalTS(state?: import("@lcap/nasl-types/out/translator").TranslatorState): string; toTextualNASL(state?: import("@lcap/nasl-types/out/translator").TranslatorState): string; isSame(compareNode: InterfaceParam | Partial | null): boolean; } export default InterfaceParam; //# sourceMappingURL=InterfaceParam__.d.ts.map