import { TranslatorState, TranslatorGenerator } from '@lcap/nasl-translator'; import type Interface from './Interface__'; import { ElementToVueOptions } from './ViewElement__'; import type Structure from './Structure__'; import type Module from './Module__'; import type AuthInterface from './AuthInterface__'; import type AbstractInterface from './AbstractInterface__'; import type Connector from './Connector__'; import { Range, GetCode } from './utils/quick-info'; import * as types from './utils/types'; import LogicItem from './LogicItem__'; import type Argument from './Argument__'; /** * 调用接口 */ export declare class CallInterface extends LogicItem { /** 类名 */ static readonly ConceptName: string; /** * 是否为抽象类 * 抽象类不能产生 concept: string */ static isAbstract: boolean; /** 继承链 */ static readonly inheritanceChain: string[]; /** * 产品概念 */ readonly concept: 'CallInterface' | 'CallMicroserviceInterface' | 'CallGatewayInterface' | 'CallAuthInterface'; /** * calleeNamespace */ calleeNamespace: string; /** * calleeName */ calleeName: string; /** * shortcut */ shortcut?: boolean; /** * handleError */ handleError?: boolean; errorMessage?: types.LogicItemNode; setErrorMessage(errorMessage: types.LogicItemNode): void; /** * 实际参数 */ arguments: Array; /** * @param source 需要合并的部分参数 */ constructor(source?: Partial); static from(source: any, parentNode?: any, parentKey?: string): CallInterface; /** * 插入实际参数 * @internal * @param argumentOptions 实际参数参数 */ _insertArgumentAt(argumentOptions: Partial, index: number): Argument; /** * 插入实际参数 * @internal * @param argument 已有的实际参数实例 */ _insertArgumentAt(argument: Argument, index: number): Argument; /** * 插入实际参数 * @param argumentOptions 实际参数参数 */ insertArgumentAt(argumentOptions: Partial, index: number): Argument; /** * 插入实际参数 * @param argument 已有的实际参数实例 */ insertArgumentAt(argument: Argument, index: number): Argument; /** * 添加实际参数 * @internal * @param argumentOptions 实际参数参数 */ _addArgument(argumentOptions: Partial): Argument; /** * 添加实际参数 * @internal * @param argument 已有的实际参数实例 */ _addArgument(argument: Argument): Argument; /** * 添加实际参数 * @param argumentOptions 实际参数参数 */ addArgument(argumentOptions: Partial): Argument; /** * 添加实际参数 * @param argument 已有的实际参数实例 */ addArgument(argument: Argument): Argument; /** * 删除实际参数 * @param argument 已有的实际参数实例 */ removeArgument(argument: Argument): void; /** * 设置 handleError */ setHandleError(handleError: boolean): void; name?: string; get calleeTitle(): any; /** * 标识当前删除是否为鉴权方式更新导致的删除。 * 针对此种删除,删除逻辑已经处理,无需再走 deleteCallNode 逻辑 */ __authDelete: Boolean; /** * 剪切时,不删除接口, 无需走 deleteCallNode 逻辑 */ __isCut?: Boolean; deleteCallNode(): Promise; replaceToInterface(oldItf: AuthInterface): void; get tsCalleeNamespace(): string; toVue(options?: ElementToVueOptions): string; toUI(state?: TranslatorState, hideDetails?: boolean): string; toJS(state?: TranslatorState): string; shouldCheckErrorMessage(): boolean; 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; toBrief(): string; get calleeKey(): string; get calleewholeKey(): string; get tsCalleeName(): string; get tsCalleeKey(): string; get calleeDefaultKey(): string; _setCallee(_interface: Interface): void; setCallee(_interface: Interface, oldInterface?: Partial): void; getCallNode(): any; get completeArguments(): Argument[]; /** * 反向查找对应 module 和 interface */ getModuleInterface(): { _module: Module | Connector; _interface: types.AbstractInterfaceNode; }; reNameInterface(itfData: Partial, newName: string, structureNameMap: Map): Partial; reNameStructureAndRetureNamesMap(structuresData: Partial[], moduleName: string): Map; createInterfaceInConnector({ moduleData, selectedModule }: { moduleData: Partial; selectedModule: any; }): void; createOrUpdateInterface({ moduleData, selectedModule }: { moduleData: Partial; selectedModule: any; }): Promise; get integration(): import("./Integration__").Integration; getQuickInfoOffset(range: Range, getCode: GetCode): import("./utils/quick-info").QuickInfoData; } export default CallInterface; //# sourceMappingURL=CallInterface__.d.ts.map