import { ReactNode, Ref, RefAttributes } from "react"; import { DOMProps } from "@react-types/shared"; import { ForwardedRefComponent } from "../../types/components"; export declare type TextElementType = HTMLHeadingElement | HTMLParagraphElement; export declare type TextVariantType = "h1" | "h2" | "h3" | "h4" | "h5" | "lead" | "body" | "caption" | "legal"; export declare type ElementType = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "span"; export interface TextProps extends DOMProps, RefAttributes { /** HTML element for the text */ elementType?: ElementType; /** Specify font size override */ variant?: TextVariantType; /** Specify compact line height override */ spacing?: "loose" | "tight"; /** Custom class name for setting specific CSS */ className?: string; children: ReactNode; } export declare type TextRef = Ref; declare const Text: ForwardedRefComponent; export { Text };