import { ComponentType, JSX, ReactElement } from 'react'; import { R as Registry, b as RemoteFetchOptions, E as EvalContext } from './remote-B5coCv6B.js'; import { P as PageSchema, V as VariantList, S as SchemaPatch, R as RendererDiagnostic } from './schema-C4Hcw2Y6.js'; type ReactRenderable = ComponentType> | string; interface ReactRendererOptions { schema?: PageSchema; variants?: VariantList; registry: Registry; patches?: SchemaPatch[]; remote?: Omit; state?: Record; flags?: Record; env?: Record; data?: Record; actions?: Record, ctx: EvalContext) => void>; fallbackTag?: keyof JSX.IntrinsicElements; onDiagnostic?: (d: RendererDiagnostic) => void; /** * Runtime-validate the base schema with zod before rendering. * * Default: `false`. Static JSON schemas imported at build time are * already TS-checked via the `PageSchema` type; running zod on them * bloats the client bundle by ~50KB. Turn this on only when you pass * an `options.remote.url` (remote payloads are always validated * regardless of this flag) or when you explicitly want defensive * parsing of user-authored schemas. */ validate?: boolean; } /** * Create a React component that renders a page from a config-driven schema. */ declare function createConfiguredPage(options: ReactRendererOptions): () => ReactElement; export { type ReactRenderable, type ReactRendererOptions, createConfiguredPage };