/** * `StructuredOutput` — the READ-ONLY output side of the schema-driven system: * it renders a tool's `structured_content` THROUGH its declared MCP * `output_schema` (property titles + declared order), and falls back to a raw * `JsonTree` when the tool declares no output schema (or the content does not * match an object schema). * * Reusable by any feature/plugin run surface. SAFETY: every schema-derived and * content-derived value renders as React TEXT (through `JsonTree` / plain text * nodes), so a payload carrying markup is escaped, never interpreted. */ import type { ReactNode } from 'react'; import type { JsonSchema } from '../schema-form/types'; export interface StructuredOutputProps { /** The tool's declared MCP output schema, if any. */ readonly schema?: JsonSchema; /** The `structured_content` the tool returned. */ readonly content: unknown; } /** * Render `content` through `schema`. An object schema drives a labeled, * ordered field list (each value shown with a `JsonTree`); anything else — no * schema, a non-object schema, or content that is not a matching object — * renders the raw content through a single `JsonTree`. */ export declare function StructuredOutput({ schema, content }: StructuredOutputProps): ReactNode; //# sourceMappingURL=StructuredOutput.d.ts.map