import React from "react"; import { VariantType } from "../menu-item"; import { TagProps } from "../../../__internal__/utils/helpers/tags"; type AllowedAsValues = "h2" | "h3" | "h4" | "h5" | "h6"; export interface MenuTitleProps extends TagProps { /** MenuItem children to be rendered within the segment */ children?: React.ReactNode; /** The text content for the segment title */ text: string; /** Set the variant of the MenuSegmentTitle */ variant?: VariantType; /** Set the heading level for the segment title */ as?: AllowedAsValues; /** Data tag prop bag for segmented children */ segmentWrapperProps?: TagProps; } declare const MenuSegmentTitle: React.ForwardRefExoticComponent>; export default MenuSegmentTitle;