import { GenerativeUILibrary, GenerativeUIRenderContext } from "./types.js"; import { ReactNode } from "react"; //#region src/renderGenerativeUI.d.ts /** * Renders a generative-ui tree against a {@link GenerativeUILibrary}. * * The model emits each node as a flat object `{ $type, ...props }`. We first * normalize that wire form into the canonical {@link NormalizedUINode} (with * `children` lifted to a reserved top-level key), then render: each `type` is * looked up in the library and its `props` are passed to the component's * `render(props, context)`, with `children` rendered recursively so components * can nest. */ export declare function renderGenerativeUI(node: unknown, library: GenerativeUILibrary, context?: GenerativeUIRenderContext): ReactNode; //#endregion //# sourceMappingURL=renderGenerativeUI.d.ts.map