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'; /** * Provides a shared state to a series of radio buttons. * Renders a ``. */ export declare function RadioGroup(componentProps: RadioGroup.Props): React.JSX.Element; export interface RadioGroupState { /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the user should be unable to select a different radio button in the group. */ readOnly: boolean; /** * Whether the user must choose a value before submitting a form. */ required: boolean; } export interface RadioGroupProps extends Omit, 'value'> { /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; /** * Whether the user should be unable to select a different radio button in the group. * @default false */ readOnly?: boolean | undefined; /** * Whether the user must choose a value before submitting a form. * @default false */ required?: boolean | undefined; /** * The controlled 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 uncontrolled value of the radio button that should be initially selected. * * To render a controlled radio group, use the `value` prop instead. */ defaultValue?: Value | undefined; /** * Callback fired when the value changes. */ onValueChange?: ((value: Value, eventDetails: RadioGroup.ChangeEventDetails) => void) | undefined; } export type RadioGroupChangeEventReason = typeof REASONS.none; export type RadioGroupChangeEventDetails = ZestChangeEventDetails; export declare namespace RadioGroup { type State = RadioGroupState; type Props = RadioGroupProps; type ChangeEventReason = RadioGroupChangeEventReason; type ChangeEventDetails = RadioGroupChangeEventDetails; } //# sourceMappingURL=RadioGroup.d.ts.map