import { default as React } from 'react'; export type RadioKind = "normal" | "card" | "input-card" | "checkmark" | "rating"; export interface RadioProps { /** The `name` attribute for radio input. Use this to group radio sets. */ name: string; /** The `value` attribute for the radio input */ value: string; /** Custom label for the Radio input*/ children: React.ReactNode | string; /** * Optional callback when the Radio is checked by a user. * Called with the `value` of the currently checked input */ onCheck?: (value: string) => void; kind?: RadioKind; /** * Optional prop to set the Radio to checked, making the Radio fully controlled. * When fully controlled track the checked state by value in the parent component. * e.g. `checked={currentlyCheckedValue === thisRadioValue}` */ checked?: boolean; /** Disables the input when `true` */ isDisabled?: boolean; /** @deprecated Use `isDisabled` instead */ disabled?: boolean; /** Error text */ error?: string; /** Applies error style without a message */ hasError?: boolean; } /** * Single radio input that takes arbitrary JSX children as a label. */ declare const Radio: ({ name, value, isDisabled, disabled, onCheck, checked, children, error, hasError, kind, }: RadioProps) => React.JSX.Element; export default Radio; //# sourceMappingURL=index.d.ts.map