import type { ElementType } from "react"; import type { HovercardHeadingOptions } from "../hovercard/hovercard-heading.tsx"; import type { Props } from "../utils/types.ts"; import type { MenuStore } from "./menu-store.ts"; declare const TagName = "h1"; type TagName = typeof TagName; /** * Returns props to create a `MenuHeading` component. This hook must be used in * a component that's wrapped with `Menu` so the `aria-labelledby` prop is * properly set on the menu element. * @see https://ariakit.com/components/menu * @example * ```jsx * // This component must be wrapped with Menu * const props = useMenuHeading(); * Heading * ``` */ export declare const useMenuHeading: import("../utils/types.ts").Hook<"h1", MenuHeadingOptions<"h1">>; /** * Renders a heading in a menu. This component must be wrapped within * [`Menu`](https://ariakit.com/reference/menu) so the `aria-labelledby` prop is * properly set on the content element. * @see https://ariakit.com/components/menu * @example * ```jsx * * * Heading * * * ``` */ export declare const MenuHeading: (props: MenuHeadingProps) => import("react").ReactElement>; export interface MenuHeadingOptions extends HovercardHeadingOptions { /** * Object returned by the * [`useMenuStore`](https://ariakit.com/reference/use-menu-store) hook. If not * provided, the closest [`Menu`](https://ariakit.com/reference/menu) or * [`MenuProvider`](https://ariakit.com/reference/menu-provider) components' * context will be used. */ store?: MenuStore; } export type MenuHeadingProps = Props>; export {};