// Type definitions for agate/RadioItem

import { ItemProps as agate_Item_ItemProps } from "@enact/agate/Item";
import * as React from "react";
import { ToggleableProps as ui_Toggleable_ToggleableProps } from "@enact/ui/Toggleable";
import { TouchableProps as ui_Touchable_TouchableProps } from "@enact/ui/Touchable";
import { SpottableProps as spotlight_Spottable_SpottableProps } from "@enact/spotlight/Spottable";
import { SkinnableProps as agate_Skinnable_SkinnableProps } from "@enact/agate/Skinnable";

type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
type Merge<M, N> = Omit<M, Extract<keyof M, keyof N>> & N;

export interface RadioItemBaseProps extends agate_Item_ItemProps {
  /**
 * Customizes the component by mapping the supplied collection of CSS class names to the
corresponding internal elements and states of this component.
 * 
 * The following classes are supported:
 * *  `radioIcon`  - Class name for the radio toggle icon
 * *  `radioItem`  - The root class name
 */
  css?: object;
  /**
   * The icon to display when selected.
   */
  icon?: string;
  /**
   * Sets the RadioItem to its 'on' state.
   */
  selected?: boolean;
}
/**
 * Renders an  `Item`  with a radio-dot component. Useful to show a selected state on an Item.
 */

export class RadioItemBase extends React.Component<
  Merge<React.HTMLProps<HTMLElement>, RadioItemBaseProps>
> {}

export interface RadioItemDecoratorProps
  extends Merge<
    Merge<
      Merge<ui_Toggleable_ToggleableProps, ui_Touchable_TouchableProps>,
      spotlight_Spottable_SpottableProps
    >,
    agate_Skinnable_SkinnableProps
  > {}
export function RadioItemDecorator<P>(
  Component: React.ComponentType<P> | string
): React.ComponentType<P & RadioItemDecoratorProps>;

export interface RadioItemProps
  extends Merge<RadioItemBaseProps, RadioItemDecoratorProps> {}
/**
 * An Agate-styled RadioItem.
 */

export class RadioItem extends React.Component<
  Merge<React.HTMLProps<HTMLElement>, RadioItemProps>
> {}

export default RadioItem;
