import * as React from "react"; import { PropsWithAs, ArrayValue } from "reakit-utils/types"; import { CheckboxOptions, CheckboxHTMLProps } from "../Checkbox/Checkbox"; import { DeepPath, DeepPathValue } from "./__utils/types"; import { unstable_FormStateReturn } from "./FormState"; export declare type unstable_FormCheckboxOptions> = Omit & Pick, "baseId" | "values" | "update" | "blur" | "touched" | "errors"> & { /** * Checkbox's name as in form values. */ name: P; /** * Checkbox's value is going to be used when multiple checkboxes share the * same state. Checking a checkbox with value will add it to the state * array. */ value?: ArrayValue>; }; export declare type unstable_FormCheckboxHTMLProps = CheckboxHTMLProps & React.InputHTMLAttributes; export declare type unstable_FormCheckboxProps> = unstable_FormCheckboxOptions & unstable_FormCheckboxHTMLProps; export declare const unstable_useFormCheckbox: >(options: unstable_FormCheckboxOptions, htmlProps?: CheckboxHTMLProps | undefined) => unstable_FormCheckboxHTMLProps; export declare const unstable_FormCheckbox: , T extends React.ElementType = "input">(props: PropsWithAs, T>) => JSX.Element;