import { w as SchemaMeta } from "../types-BBQaEPfE.mjs"; import { t as Diagnostic } from "../diagnostics-mftUZI7c.mjs"; import { r as SchemaIoSide } from "../adapter-ktQaheWB.mjs"; import { f as RejectUnrepresentableZod } from "../typeInference-Y8tNEQJk.mjs"; import { a as InferredValue, t as InferFields } from "../inferValue-eAnh50EM.mjs"; import { SolidComponentResolver, SolidWidgetMap } from "./types.mjs"; import { JSX } from "solid-js"; //#region src/solid/SchemaView.d.ts /** * Props accepted by {@link SchemaView}. * * Mirrors `` for the read-only path — no `onChange`, * no `validate`, and the theme is supplied via the `resolver` prop * rather than `SchemaProvider` so it can be rendered without a * Solid context binding. * * @group Components */ interface SchemaViewProps { schema: RejectUnrepresentableZod; schemaRef?: SchemaRef; io?: Mode; value?: InferredValue; fields?: InferFields; meta?: SchemaMeta; description?: string; /** Theme resolver. Falls back to the headless resolver if omitted. */ resolver?: SolidComponentResolver; widgets?: SolidWidgetMap; onDiagnostic?: (diagnostic: Diagnostic) => void; strict?: boolean; idPrefix?: string; } /** * Read-only Solid renderer that is safe to use outside a Solid context * subtree — the theme adapter is passed via the `resolver` prop. * * Always renders read-only; pair with `SchemaComponent` for editable * forms. Mirrors the contract of the React ``. * * @group Components * @example * ```tsx * import { SchemaView } from "schema-components/solid/SchemaView"; * * export default function UserCard(props: { user: User }) { * return ; * } * ``` */ declare function SchemaView(props: SchemaViewProps): JSX.Element; //#endregion export { SchemaView, SchemaViewProps };