import { n as CompositeItemOptions } from "../composite-item-HW-_P3KK.js";
import { t as RadioStore } from "../radio-store-54I82EF4.js";
import { Props } from "@ariakit/react-utils";
import { ChangeEvent, ElementType } from "react";
import { BivariantCallback } from "@ariakit/utils";
//#region src/radio/radio.d.ts
declare const TagName = "input";
type TagName = typeof TagName;
type HTMLType = HTMLElementTagNameMap[TagName];
/**
 * Returns props to create a `Radio` component.
 * @see https://ariakit.com/components/radio
 * @example
 * ```jsx
 * const store = useRadioStore();
 * const props = useRadio({ store, value: "Apple" });
 * <RadioGroup store={store}>
 *   <Role {...props} render={<input />} />
 *   <Radio value="Orange" />
 * </RadioGroup>
 * ```
 */
declare const useRadio: import("@ariakit/react-utils").Hook<"input", RadioOptions<"input">>;
/**
 * Renders a radio button element that's typically wrapped in a
 * [`RadioGroup`](https://ariakit.com/reference/radio-group) component.
 * @see https://ariakit.com/components/radio
 * @example
 * ```jsx {3-4}
 * <RadioProvider>
 *   <RadioGroup>
 *     <Radio value="Apple" />
 *     <Radio value="Orange" />
 *   </RadioGroup>
 * </RadioProvider>
 * ```
 */
declare const Radio: (props: RadioProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
interface RadioOptions<T extends ElementType = TagName> extends CompositeItemOptions<T> {
  /**
   * Object returned by the
   * [`useRadioStore`](https://ariakit.com/reference/use-radio-store) hook. If
   * not provided, the closest
   * [`RadioGroup`](https://ariakit.com/reference/radio-group) or
   * [`RadioProvider`](https://ariakit.com/reference/radio-provider) components'
   * context will be used.
   */
  store?: RadioStore;
  /**
   * The value of the radio button.
   *
   * Live examples:
   * - [FormRadio](https://ariakit.com/examples/form-radio)
   * - [MenuItemRadio](https://ariakit.com/examples/menu-item-radio)
   */
  value: string | number;
  /**
   * The native `name` attribute.
   */
  name?: string;
  /**
   * Determines if the radio button is checked. Using this prop will make the
   * radio button controlled and override the
   * [`value`](https://ariakit.com/reference/radio-provider#value) state.
   */
  checked?: boolean;
  /**
   * Callback function that is called when the radio button state changes.
   */
  onChange?: BivariantCallback<(event: ChangeEvent<HTMLType>) => void>;
}
type RadioProps<T extends ElementType = TagName> = Props<T, RadioOptions<T>>;
//#endregion
export { Radio, RadioOptions, RadioProps, useRadio };
//# sourceMappingURL=radio.d.ts.map