import type { ChangeEvent, InputHTMLAttributes } from "react";
import type { CommandOptions } from "../command/command.js";
import type { As, Props } from "../utils/types.js";
import type { CheckboxStore } from "./checkbox-store.js";
/**
 * Returns props to create a `Checkbox` component. If the element is not a
 * native checkbox, the hook will return additional props to make sure it's
 * accessible.
 * @see https://ariakit.org/components/checkbox
 * @example
 * ```jsx
 * const props = useCheckbox({ render: <div /> });
 * <Role {...props}>Accessible checkbox</Role>
 * ```
 */
export declare const useCheckbox: import("../utils/types.js").Hook<CheckboxOptions<"input">>;
/**
 * Renders an accessible checkbox element. If the underlying element is not a
 * native checkbox, this component will pass additional attributes to make sure
 * it's accessible.
 * @see https://ariakit.org/components/checkbox
 * @example
 * ```jsx
 * <Checkbox render={<div />}>Accessible checkbox</Checkbox>
 * ```
 */
export declare const Checkbox: import("../utils/types.js").Component<CheckboxOptions<"input">>;
export interface CheckboxOptions<T extends As = "input"> extends CommandOptions<T> {
    /**
     * Object returned by the `useCheckboxStore` hook. If not provided, the
     * internal store will be used.
     *
     * Live examples:
     * - [Checkbox as button](https://ariakit.org/examples/checkbox-as-button)
     * - [Custom Checkbox](https://ariakit.org/examples/checkbox-custom)
     */
    store?: CheckboxStore;
    /**
     * The value of the checkbox. This is useful when the same checkbox store is
     * used for multiple `Checkbox` elements, in which case the value will be an
     * array of checked values.
     *
     * Live examples:
     * - [Checkbox group](https://ariakit.org/examples/checkbox-group)
     * @example
     * ```jsx
     * const checkbox = useCheckboxStore({
     *   defaultValue: ["Apple", "Orange"],
     * });
     * <Checkbox store={checkbox} value="Apple" />
     * <Checkbox store={checkbox} value="Orange" />
     * <Checkbox store={checkbox} value="Watermelon" />
     * ```
     */
    value?: InputHTMLAttributes<HTMLInputElement>["value"];
    /**
     * The default `checked` state of the checkbox. This prop is ignored if the
     * `checked` or the `store` props are provided.
     */
    defaultChecked?: "mixed" | boolean;
    /**
     * The `checked` state of the checkbox. This will override the value inferred
     * from `store` prop, if provided. This can be `"mixed"` to indicate that the
     * checkbox is partially checked.
     */
    checked?: "mixed" | boolean;
    /**
     * A function that is called when the checkbox's `checked` store changes.
     */
    onChange?: (event: ChangeEvent<HTMLInputElement>) => void;
}
export type CheckboxProps<T extends As = "input"> = Props<CheckboxOptions<T>>;
