import { n as GroupLabelOptions } from "../group-label-D2fygdhj.js";
import { t as FormStore } from "../form-store-C15msSpw.js";
import { Props } from "@ariakit/react-utils";
import { ElementType } from "react";
//#region src/form/form-group-label.d.ts
declare const TagName = "div";
type TagName = typeof TagName;
/**
 * Returns props to create a `FormGroupLabel` component. This hook must be used
 * in a component that's wrapped with `FormGroup` so the `aria-labelledby` prop
 * is properly set on the form group element.
 * @see https://ariakit.com/components/form
 * @example
 * ```jsx
 * // This component must be wrapped with FormGroup
 * const props = useFormGroupLabel();
 * <Role {...props}>Label</Role>
 * ```
 */
declare const useFormGroupLabel: import("@ariakit/react-utils").Hook<"div", FormGroupLabelOptions<"div">>;
/**
 * Renders a label in a form group. This component must be wrapped with the
 * [`FormGroup`](https://ariakit.com/reference/form-group) or
 * [`FormRadioGroup`](https://ariakit.com/reference/form-radio-group) components
 * so the `aria-labelledby` prop is properly set on the form group element.
 * @see https://ariakit.com/components/form
 * @example
 * ```jsx {10}
 * const form = useFormStore({
 *   defaultValues: {
 *     username: "",
 *     email: "",
 *   },
 * });
 *
 * <Form store={form}>
 *   <FormGroup>
 *     <FormGroupLabel>Account</FormGroupLabel>
 *     <FormLabel name={form.names.username}>Username</FormLabel>
 *     <FormInput name={form.names.username} />
 *     <FormLabel name={form.names.email}>Email</FormLabel>
 *     <FormInput name={form.names.email} />
 *   </FormGroup>
 * </Form>
 * ```
 */
declare const FormGroupLabel: (props: FormGroupLabelProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
interface FormGroupLabelOptions<T extends ElementType = TagName> extends GroupLabelOptions<T> {
  /**
   * Object returned by the
   * [`useFormStore`](https://ariakit.com/reference/use-form-store) hook. If not
   * provided, the closest [`Form`](https://ariakit.com/reference/form) or
   * [`FormProvider`](https://ariakit.com/reference/form-provider) components'
   * context will be used.
   */
  store?: FormStore;
}
type FormGroupLabelProps<T extends ElementType = TagName> = Props<T, FormGroupLabelOptions<T>>;
//#endregion
export { FormGroupLabel, FormGroupLabelOptions, FormGroupLabelProps, useFormGroupLabel };
//# sourceMappingURL=form-group-label.d.ts.map