import React from "react"; import type { TextAlign, TextColor, TruncateLength, TypographyProps } from "../Typography"; type HeadingColor = Extract; export type HeadingLevel = "title" | "subtitle" | "heading" | "subHeading"; interface HeadingProps extends Pick, "selectable"> { /** * Text to display. Supports nesting text elements. */ readonly children: React.ReactNode; /** * The type of heading, e.g., "Title" */ readonly level?: T; /** * The text color of heading */ readonly variation?: HeadingColor; /** * Uses the reverse variant of the text color for the heading */ readonly reverseTheme?: boolean; /** * Alignment of heading */ readonly align?: TextAlign; /** * The maximum amount of lines the text can occupy before being truncated with "...". * Uses predefined string values that correspond to a doubling scale for the amount of lines. */ readonly maxLines?: TruncateLength; /** * Allow text to be resized based on user's device display scale */ readonly allowFontScaling?: boolean; } export declare const HEADING_MAX_SCALED_FONT_SIZE: Record; export declare function Heading({ children, level, variation, reverseTheme, align, maxLines, allowFontScaling, selectable, }: HeadingProps): React.JSX.Element; export {};