/** * IR (Intermediate Representation) * * Universal explicit bracket syntax for semantic DSL interchange. * Domain-agnostic — works for any DSL built on the framework. * * Three input formats converge on SemanticNode: * 1. Bracket syntax: [toggle patient:.active destination:#button] * 2. LLM JSON: { action: "toggle", roles: { patient: { type: "selector", value: ".active" } } } * 3. Natural language: (handled by language-specific parsers, not this module) * * @example * ```typescript * import { parseExplicit, renderExplicit, jsonToSemanticNode } from '@lokascript/framework/ir'; * * const node = parseExplicit('[toggle patient:.active]'); * const bracket = renderExplicit(node); // "[toggle patient:.active]" * const json = semanticNodeToJSON(node); // { action: "toggle", roles: { ... } } * ``` */ export type { SemanticJSON, SemanticJSONValue, SchemaLookup, ParseExplicitOptions, IRDiagnostic, } from './types'; export { DEFAULT_REFERENCES, isValidReference } from './references'; export { parseExplicit, parseCompound, parseDocument, isExplicitSyntax, isCompoundSyntax, isDocumentSyntax, } from './explicit-parser'; export { renderExplicit, renderDocument } from './explicit-renderer'; export { jsonToSemanticNode, validateSemanticJSON, semanticNodeToJSON } from './json-schema'; export type { ProtocolNodeJSON, ProtocolValueJSON, ProtocolNodeKind, ProtocolChainType, ProtocolDiagnosticJSON, AnnotationJSON, MatchArmJSON, LSEEnvelopeJSON, } from './types'; export { toProtocolJSON, fromProtocolJSON, validateProtocolJSON, toEnvelopeJSON, fromEnvelopeJSON, isEnvelope, } from './protocol-json'; export { fromInterchangeNode, convertValue, renderExpr } from './from-interchange'; export { semanticNodeToRuntimeAST, semanticValueToAST } from './to-runtime-ast'; export type { RuntimeASTNode, RuntimeCommandNode, RuntimeEventNode } from './to-runtime-ast'; //# sourceMappingURL=index.d.ts.map