import * as Core from "@ariakit/core/radio/radio-store"; import type { CompositeStoreFunctions, CompositeStoreOptions, CompositeStoreState } from "../composite/composite-store.ts"; import type { Store } from "../utils/store.tsx"; export declare function useRadioStoreProps(store: T, update: () => void, props: RadioStoreProps): T; /** * Creates a radio store to control the state of * [Radio](https://ariakit.com/components/radio) components. * @see https://ariakit.com/components/radio * @example * ```jsx * const radio = useRadioStore(); * * * * * * ``` */ export declare function useRadioStore(props?: RadioStoreProps): RadioStore; export interface RadioStoreState extends Core.RadioStoreState, CompositeStoreState { } export interface RadioStoreFunctions extends Core.RadioStoreFunctions, CompositeStoreFunctions { } export interface RadioStoreOptions extends Core.RadioStoreOptions, CompositeStoreOptions { /** * Function that will be called when the * [`value`](https://ariakit.com/reference/radio-provider#value) state * changes. */ setValue?: (value: RadioStoreState["value"]) => void; } export interface RadioStoreProps extends RadioStoreOptions, Core.RadioStoreProps { } export interface RadioStore extends RadioStoreFunctions, Store { }