import { TypeAnnotation } from '@lcap/nasl-concepts'; /** * 我有一个 json schema,请你作为参考。 * 请写一个函数将这个json schema 的类型转换为 NASL: @packages/nasl-concepts/src/concepts/TypeAnnotation__.ts * https://minio-api.codewave-test.163yun.com/lowcode-static/packages/@lcap/element-plus@1.1.0/dist-theme/mcpTool.json */ /** * JSON Schema 类型定义 */ interface JSONSchema { type?: string | string[]; properties?: Record; items?: JSONSchema | JSONSchema[]; required?: string[]; anyOf?: JSONSchema[]; oneOf?: JSONSchema[]; allOf?: JSONSchema[]; $ref?: string; enum?: any[]; description?: string; title?: string; format?: string; additionalProperties?: boolean | JSONSchema; [key: string]: any; } /** * 将 JSON Schema 转换为 NASL TypeAnnotation * * @param schema JSON Schema 对象 * @param refs 用于解析 $ref 的引用映射(可选) * @returns NASL TypeAnnotation */ export default function jsonSchemaToNaslType(schema: JSONSchema, refs?: { [key: string]: JSONSchema; }): TypeAnnotation; export {}; //# sourceMappingURL=json-schema-to-nasl-type.d.ts.map