import type { ElementType } from "react"; import type { CheckboxOptions } from "../checkbox/checkbox.tsx"; import type { Props } from "../utils/types.ts"; import type { FormControlOptions } from "./form-control.tsx"; declare const TagName = "input"; type TagName = typeof TagName; /** * Returns props to create a `FormCheckbox` component. * @see https://ariakit.com/components/form * @example * ```jsx * const store = useFormStore({ defaultValues: { acceptTerms: false } }); * const props = useFormCheckbox({ store, name: store.names.acceptTerms }); *
* *
* ``` */ export declare const useFormCheckbox: import("../utils/types.ts").Hook<"input", FormCheckboxOptions<"input">>; /** * Renders a checkbox input as a form control, representing a boolean, string, * number, or array value. * @see https://ariakit.com/components/form * @example * ```jsx {9} * const form = useFormStore({ * defaultValues: { * acceptTerms: false, * }, * }); * *
* *
* ``` */ export declare const FormCheckbox: (props: FormCheckboxProps) => import("react").ReactElement>; export interface FormCheckboxOptions extends FormControlOptions, Omit, "store" | "name"> { } export type FormCheckboxProps = Props>; export {};