import * as React from "react"; import { RadioGroup as RadioGroupPrimitives } from "radix-ui"; import type { RadioItemParams, RadioItemFormatted } from "../domains/index.js"; /** * Radio Group Renderer */ interface RadioGroupPrimitiveProps extends Omit { items: RadioItemParams[]; /** * Callback triggered when the selected value changes. */ onChange?: (value: string) => void; /** * Optional selected item. */ value?: string; } interface RadioGroupVm { items: RadioItemFormatted[]; } interface RadioGroupRendererProps extends Omit { items: RadioItemFormatted[]; changeValue: (value: string) => void; } declare const RadioGroupRenderer: ({ items, changeValue, value, disabled }: RadioGroupRendererProps) => React.JSX.Element; /** * Radio Group Primitive */ declare const RadioGroupPrimitive: (props: RadioGroupPrimitiveProps) => React.JSX.Element; /** * @deprecated * This component is retained in @webiny/admin-ui and used in @webiny/ui solely as a compatibility layer. * It is marked as deprecated because nesting `Radio` components inside `RadioGroup` is no longer the recommended approach. * Instead, we now pass an array of `RadioItemDto` directly to `RadioGroup` for better maintainability. */ declare const DeprecatedRadioGroup: ({ className, ...props }: RadioGroupPrimitives.RadioGroupProps) => React.JSX.Element; export { RadioGroupPrimitive, RadioGroupRenderer, DeprecatedRadioGroup, type RadioGroupPrimitiveProps, type RadioGroupVm };