import * as React from 'react'; import { Pressable } from 'react-native'; import type { ZestUIComponentProps } from '../../types'; /** * Represents the radio button itself. * Renders a ``. * * Must be placed within a ``: unlike the web version there is no * hidden ``, so the group is the only source of truth. */ export declare function RadioRoot(componentProps: RadioRoot.Props): React.JSX.Element; export interface RadioRootState { /** * Whether the radio button is currently selected. */ checked: boolean; /** * Whether the component should ignore user interaction. */ disabled: boolean; /** * Whether the user should be unable to select the radio button. */ readOnly: boolean; /** * Whether the user must choose a value before submitting a form. */ required: boolean; } export interface RadioRootProps extends Omit, 'value' | 'onPress'> { /** * The unique identifying value of the radio in a group. */ value: Value; /** * Whether the component should ignore user interaction. * @default false */ disabled?: boolean | undefined; /** * Whether the user should be unable to select the radio button. * @default false */ readOnly?: boolean | undefined; /** * Whether the user must choose a value before submitting a form. * @default false */ required?: boolean | undefined; } export declare namespace RadioRoot { type State = RadioRootState; type Props = RadioRootProps; } //# sourceMappingURL=RadioRoot.d.ts.map