import type { ElementType } from "react"; import type { HovercardDescriptionOptions } from "../hovercard/hovercard-description.tsx"; import type { Props } from "../utils/types.ts"; import type { MenuStore } from "./menu-store.ts"; declare const TagName = "p"; type TagName = typeof TagName; /** * Returns props to create a `MenuDescription` component. This hook must be used * in a component that's wrapped with `Menu` so the `aria-describedby` 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 = useMenuDescription(); * Description * ``` */ export declare const useMenuDescription: import("../utils/types.ts").Hook<"p", MenuDescriptionOptions<"p">>; /** * Renders a description in a menu. This component must be wrapped with a * [`Menu`](https://ariakit.com/reference/menu) component so the * `aria-describedby` prop is properly set on the menu element. * @see https://ariakit.com/components/menu * @example * ```jsx {3} * * * Description * * * ``` */ export declare const MenuDescription: (props: MenuDescriptionProps) => import("react").ReactElement>; export interface MenuDescriptionOptions extends HovercardDescriptionOptions { /** * 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 MenuDescriptionProps = Props>; export {};