import { w as SchemaMeta } from "../types-BBQaEPfE.mjs"; import { d as PathOfType, f as RejectUnrepresentableZod, r as FromJSONSchema } from "../typeInference-Y8tNEQJk.mjs"; import { z } from "zod"; import { JSX } from "solid-js"; //#region src/solid/SchemaField.d.ts /** * Infer the schema's output type for SchemaField path inference. */ type InferSchemaType = T extends z.ZodType ? z.infer : T extends object ? unknown extends FromJSONSchema ? unknown : FromJSONSchema : unknown; /** * Props accepted by {@link SchemaField}. The generic `P` constrains * `path` to dot-paths reachable through the schema's inferred value * type — typed schemas get autocomplete; runtime schemas fall back to * `string`. * * @group Components */ interface SchemaFieldProps> | (string extends PathOfType> ? string : never)> { path: P; schema: RejectUnrepresentableZod; schemaRef?: SchemaRef; value?: unknown; onChange?: (value: unknown) => void; meta?: SchemaMeta; validate?: boolean; onValidationError?: (error: unknown) => void; } /** * Render a single field from a schema by dot-separated `path`. * * Walks the full schema tree, resolves the field at the supplied * `path`, then renders only that field through the same resolver * pipeline as ``. * * @group Components */ declare function SchemaField> | (string extends PathOfType> ? string : never)>(props: SchemaFieldProps): JSX.Element; //#endregion export { SchemaField, SchemaFieldProps };