import type { ReactNode, RefAttributes } from "react";
import type { DOMProps } from "../../types/dom";
import "./Text.css";
export type TextElementType = HTMLHeadingElement | HTMLParagraphElement;
export type TextVariantType = "h1" | "h2" | "h3" | "h4" | "body" | "small" | "legal" | "title";
export type ElementType = "h1" | "h2" | "h3" | "h4" | "p" | "span";
export interface TextProps extends DOMProps, RefAttributes<TextElementType> {
    /** 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;
    style?: React.CSSProperties;
}
export declare const getElementType: (variant: TextVariantType | undefined, elementType: ElementType | undefined) => ElementType;
declare function Text({ ref, elementType, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
declare namespace Text {
    var displayName: string;
}
export { Text };
