import { j as WalkedField } from "../types-BBQaEPfE.mjs"; import { d as WidgetMap, i as ComponentResolver, u as RenderProps } from "../renderer-ab9E52Bp.mjs"; import { ReactNode } from "react"; //#region src/react/renderField.d.ts /** * Global widget registry — app-wide defaults. * * Exported so `react/SchemaComponent.tsx` can define `registerWidget` and * `__clearGlobalWidgets` as direct exports (not re-exports, which the * `custom/no-re-exports` rule bans in non-index files) while sharing the * same Map with `renderField`. * * @internal — callers outside this module should use `registerWidget`. */ declare const globalWidgets: Map unknown>; /** * Render a single walked field through the resolved widget / * resolver / headless pipeline. Used internally by * {@link SchemaComponent} and {@link SchemaField}, exported so other * React-side components (e.g. the OpenAPI renderers) can dispatch * into the same fallback chain. * * Thin React-flavoured wrapper around the framework-agnostic * `dispatchRenderField` (from `core/renderField`): it constructs a * React-shaped `DispatchConfig` (widget lookup against the * instance → context → global chain, recursion sentinel as a React * `
`, fallback as a ``-wrapped value) and forwards * the call. */ declare function renderField(tree: WalkedField, value: unknown, onChange: (v: unknown) => void, userResolver: ComponentResolver | undefined, renderChild: (tree: WalkedField, value: unknown, onChange: (v: unknown) => void, pathSuffix?: string) => ReactNode, path: string, instanceWidgets?: WidgetMap, contextWidgets?: WidgetMap, depth?: number): ReactNode; //#endregion export { globalWidgets, renderField };