import { CodeAction } from '../../index'; type ChangeViewResult = { status: 'success'; result: any; } | { status: 'fail'; error?: string; }; type DependencyRecord = Record>; /** * 连接器使用信息 */ interface ConnectorUsage { connectorName: string; connectionName: string; } /** * 将代码操作转换为批量操作视图 * @param params - 转换参数对象 * @param params.codeActions - 代码操作数组,每个元素包含 path、content、action * @param params.app - NASL 应用实例,用于操作目标应用 * @param params.sessionId - 会话 ID,用于生成唯一标识和追踪 * @param params.type - 操作类型,'normal' 为正常模式,'debug' 为调试模式 * @returns Promise<{batchView: any, batchActions: Operators, ...}> 包含批量操作视图和相关数据的对象 */ export declare const transform2BatchView: ({ codeActions, app, sessionId, type, }: { codeActions: CodeAction[]; app: any; sessionId: string; type?: 'normal' | 'debug'; }) => Promise<{ accumulatedTsCode?: string; dependencies: DependencyRecord; connectorUsages: ConnectorUsage[]; batchActions: import("../../index").Operators; parseJSON?: any; errors?: { item: string; type: string; error: Error; }[]; batchView: ChangeViewResult; }>; export {}; //# sourceMappingURL=specTools.d.ts.map