import type {ComputedRef, InjectionKey} from 'vue' export type RadioValue = string | number | boolean | null | undefined export interface RadioGroupContext { name: ComputedRef isSelected: (value: RadioValue) => boolean select: (value: RadioValue) => void hasError: ComputedRef hasSuccess: ComputedRef disabled: ComputedRef readonly: ComputedRef required: ComputedRef describedBy: ComputedRef } export const radioGroupContextKey: InjectionKey = Symbol('MalioRadioGroup')