import * as React from "react"; import { PropsWithAs } from "reakit-utils/types"; import { GroupOptions, GroupHTMLProps } from "../Group/Group"; import { DeepPath } from "./__utils/types"; import { unstable_FormStateReturn } from "./FormState"; export declare type unstable_FormGroupOptions> = GroupOptions & Pick, "baseId" | "touched" | "errors"> & { /** * FormGroup's name as in form values. */ name: P; }; export declare type unstable_FormGroupHTMLProps = GroupHTMLProps & React.FieldsetHTMLAttributes; export declare type unstable_FormGroupProps> = unstable_FormGroupOptions & unstable_FormGroupHTMLProps; export declare const unstable_useFormGroup: >(options: unstable_FormGroupOptions, htmlProps?: unstable_FormGroupHTMLProps | undefined) => unstable_FormGroupHTMLProps; export declare const unstable_FormGroup: , T extends React.ElementType = "fieldset">(props: PropsWithAs, T>) => JSX.Element;