import React from 'react'; import { FieldError } from 'react-hook-form'; interface Option { value: string; label: string | React.ReactNode; } interface RadioGroupProps { name: string; onChange: (event: React.ChangeEvent) => void; value?: string | null; options: Option[]; label?: string | React.ReactNode; inputClassName?: string; labelClassName?: string; optionLabelClassName?: string; errorClassName?: string; disabled?: boolean; error?: boolean | string | { message?: string; } | null | undefined | FieldError; } declare const RadioGroup: React.ForwardRefExoticComponent>; export { type RadioGroupProps, RadioGroup as default };