import { n as PopoverHeadingOptions } from "../popover-heading-4shDH4ZF.js";
import { t as SelectStore } from "../select-store-C8tHSVWh.js";
import { Props } from "@ariakit/react-utils";
import { ElementType } from "react";
//#region src/select/select-heading.d.ts
declare const TagName = "h1";
type TagName = typeof TagName;
/**
 * Returns props to create a `SelectHeading` component.
 * @deprecated Use `useComboboxHeading` instead.
 * @see https://ariakit.com/components/select
 * @example
 * ```jsx
 * const props = useSelectHeading();
 * <Role {...props}>Heading</Role>
 * ```
 */
declare const useSelectHeading: import("@ariakit/react-utils").Hook<"h1", SelectHeadingOptions<"h1">>;
/**
 * Renders a heading element that serves as a label for
 * [`SelectPopover`](https://ariakit.com/reference/select-popover) and
 * [`SelectList`](https://ariakit.com/reference/select-list) components.
 *
 * When this component is rendered within
 * [`SelectPopover`](https://ariakit.com/reference/select-popover), all
 * [`SelectItem`](https://ariakit.com/reference/select-item) elements must be
 * rendered within a [`SelectList`](https://ariakit.com/reference/select-list)
 * instead of directly within the popover.
 * @deprecated Use
 * [`ComboboxHeading`](https://ariakit.com/reference/combobox-heading) instead.
 * @see https://ariakit.com/components/select
 * @example
 * ```jsx {4}
 * <SelectProvider>
 *   <Select />
 *   <SelectPopover>
 *     <SelectHeading>Fruits</SelectHeading>
 *     <SelectList>
 *       <SelectItem value="Apple" />
 *       <SelectItem value="Orange" />
 *     </SelectList>
 *   </SelectPopover>
 * </SelectProvider>
 * ```
 */
declare const SelectHeading: (props: SelectHeadingProps) => import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>>;
/** @deprecated Use `ComboboxHeadingOptions` instead. */
interface SelectHeadingOptions<T extends ElementType = TagName> extends PopoverHeadingOptions<T> {
  /**
   * Object returned by the
   * [`useSelectStore`](https://ariakit.com/reference/use-select-store) hook.
   *
   * **Note**: This prop has no effect on this component. The heading is linked
   * to the closest [`SelectList`](https://ariakit.com/reference/select-list)
   * or [`SelectPopover`](https://ariakit.com/reference/select-popover)
   * component through React context, so it must be rendered inside the list or
   * popover for the `aria-labelledby` prop to be set on that element.
   */
  store?: SelectStore;
}
/** @deprecated Use `ComboboxHeadingProps` instead. */
type SelectHeadingProps<T extends ElementType = TagName> = Props<T, SelectHeadingOptions<T>>;
//#endregion
export { SelectHeading, SelectHeadingOptions, SelectHeadingProps, useSelectHeading };
//# sourceMappingURL=select-heading.d.ts.map