import type { ElementType } from "react"; import type { GroupOptions } from "../group/group.tsx"; import type { Props } from "../utils/types.ts"; import type { FormStore } from "./form-store.ts"; declare const TagName = "div"; type TagName = typeof TagName; /** * Returns props to create a `FormGroup` component. * @see https://ariakit.com/components/form * @example * ```jsx * const store = useFormStore(); * const props = useFormGroup({ store }); *
* ``` */ export declare const useFormGroup: import("../utils/types.ts").Hook<"div", FormGroupOptions<"div">>; /** * Renders a group element for form controls. The * [`FormGroupLabel`](https://ariakit.com/reference/form-group-label) component * can be used inside this component so the `aria-labelledby` prop is properly * set on the group element. * @see https://ariakit.com/components/form * @example * ```jsx {9-15} * const form = useFormStore({ * defaultValues: { * username: "", * email: "", * }, * }); * * * ``` */ export declare const FormGroup: (props: FormGroupProps) => import("react").ReactElement