import * as React from "react"; import { PropsWithAs } from "reakit-utils/types"; import { RoleOptions, RoleHTMLProps } from "../Role/Role"; import { DeepPath } from "./__utils/types"; import { unstable_FormStateReturn } from "./FormState"; export declare type unstable_FormLabelOptions> = RoleOptions & Pick, "baseId" | "values"> & { /** * FormInput's name as in form values. */ name: P; /** * Label can be passed as the `label` prop or `children`. */ label?: any; }; export declare type unstable_FormLabelHTMLProps = RoleHTMLProps & React.LabelHTMLAttributes; export declare type unstable_FormLabelProps> = unstable_FormLabelOptions & unstable_FormLabelHTMLProps; export declare const unstable_useFormLabel: >(options: unstable_FormLabelOptions, htmlProps?: unstable_FormLabelHTMLProps | undefined) => unstable_FormLabelHTMLProps; export declare const unstable_FormLabel: , T extends React.ElementType = "label">(props: PropsWithAs, T>) => JSX.Element;