/** * LLM JSON Schema Conversion (DEPRECATED) * * These functions are superseded by the unified protocol JSON functions in * protocol-json.ts. `fromProtocolJSON()` now accepts optional `kind` (defaults * to "command") and `trigger` sugar, making these wrappers unnecessary. * * Use instead: * - `validateProtocolJSON()` instead of `validateSemanticJSON()` * - `fromProtocolJSON()` instead of `jsonToSemanticNode()` * - `toProtocolJSON()` instead of `semanticNodeToJSON()` * * These functions are kept for backward compatibility and will be removed * in a future major version. */ import type { SemanticNode } from '../core/types'; import type { SemanticJSON, IRDiagnostic } from './types'; /** * Validate LLM JSON input structure. * Returns diagnostics (empty array = valid). * @deprecated Use `validateProtocolJSON()` from `protocol-json.ts` instead. */ export declare function validateSemanticJSON(input: SemanticJSON): IRDiagnostic[]; /** * Convert validated SemanticJSON to a SemanticNode. * * Returns a properly typed SemanticNode using the framework's factory functions. * If `trigger` is present, wraps the command in an event handler node. * @deprecated Use `fromProtocolJSON()` from `protocol-json.ts` instead. */ export declare function jsonToSemanticNode(input: SemanticJSON): SemanticNode; /** * Convert a SemanticNode to SemanticJSON format. * * This is the inverse of jsonToSemanticNode(). For event handlers, * the event is extracted into the `trigger` field. * @deprecated Use `toProtocolJSON()` from `protocol-json.ts` instead. */ export declare function semanticNodeToJSON(node: SemanticNode): SemanticJSON; //# sourceMappingURL=json-schema.d.ts.map