import type { CompositeStoreFunctions, CompositeStoreOptions, CompositeStoreState } from "../composite/composite-store.js";
import type { Store, StoreOptions, StoreProps } from "../utils/store.js";
import type { SetState } from "../utils/types.js";
/**
 * Creates a radio store.
 */
export declare function createRadioStore({ ...props }?: RadioStoreProps): RadioStore;
export interface RadioStoreState extends CompositeStoreState {
    /**
     * @default true
     */
    focusLoop: CompositeStoreState["focusLoop"];
    /**
     * The value of the radio group.
     * @default null
     */
    value: string | number | null;
}
export interface RadioStoreFunctions extends CompositeStoreFunctions {
    /**
     * Sets the `value` state.
     * @example
     * store.setValue("apple");
     * store.setValue((value) => value === "apple" ? "orange" : "apple");
     */
    setValue: SetState<RadioStoreState["value"]>;
}
export interface RadioStoreOptions extends StoreOptions<RadioStoreState, "focusLoop" | "value">, CompositeStoreOptions {
    /**
     * The default value of the radio group.
     * @default null
     */
    defaultValue?: RadioStoreState["value"];
}
export type RadioStoreProps = RadioStoreOptions & StoreProps<RadioStoreState>;
export type RadioStore = RadioStoreFunctions & Store<RadioStoreState>;
