import * as React from 'react'; import { View } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; import type { ZestChangeEventDetails } from '../../utils/createChangeEventDetails'; import { REASONS } from '../../utils/reasons'; /** * Groups related radio items. * Renders a ``. */ export declare function MenuRadioGroup(componentProps: MenuRadioGroup.Props): React.JSX.Element; export interface MenuRadioGroupState { /** * Whether the component should ignore user interaction. */ disabled: boolean; } export interface MenuRadioGroupProps extends Omit, 'value'> { /** * The value of the radio item that should be currently selected. * * To render an uncontrolled radio group, use the `defaultValue` prop instead. */ value?: Value | undefined; /** * The value of the radio item that should be initially selected. * * To render a controlled radio group, use the `value` prop instead. */ defaultValue?: Value | undefined; /** * Event handler called when the selected value changes. */ onValueChange?: ((value: Value, eventDetails: MenuRadioGroup.ChangeEventDetails) => void) | undefined; /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; } export type MenuRadioGroupChangeEventReason = typeof REASONS.itemPress | typeof REASONS.none; export type MenuRadioGroupChangeEventDetails = ZestChangeEventDetails; export declare namespace MenuRadioGroup { type State = MenuRadioGroupState; type Props = MenuRadioGroupProps; type ChangeEventReason = MenuRadioGroupChangeEventReason; type ChangeEventDetails = MenuRadioGroupChangeEventDetails; } //# sourceMappingURL=MenuRadioGroup.d.ts.map