/** * The union field renderer: a variant picker plus the active variant's fields. * An object variant renders its properties inline (skipping the discriminator * tag, which the picker owns), with the variant's required fields carrying the * design system's required marker; a scalar/enum variant renders as a single * nested {@link FieldNode}. Selecting a variant seeds a concrete value for it, * preserving the fields the outgoing value shares with the new variant (see * {@link switchVariantValue}). */ import type { ReactNode } from 'react'; import type { FieldModel } from './field-model'; import type { JsonSchema, SchemaFormErrors } from './types'; export declare function UnionField({ heading, description, error, model, root, value, onChange, path, errors, idPrefix, }: { heading: string; description: string | undefined; error: string | undefined; model: Extract; root: JsonSchema; value: unknown; onChange: (value: unknown) => void; path: string; errors: SchemaFormErrors | undefined; idPrefix: string; }): ReactNode; //# sourceMappingURL=union-field.d.ts.map