import type { ComponentPropsWithoutRef, ElementType, ForwardedRef, ReactElement } from 'react'; import type { SxProp } from '../Layout/sx.js'; export type TextVariant = 'display' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'lead' | 'body' | 'small' | 'caption' | 'code' | 'kbd'; export type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold'; export type TextAlign = 'left' | 'center' | 'right' | 'justify'; export type TextColor = 'primary' | 'secondary' | 'muted' | 'accent' | 'danger' | 'warning' | 'success' | 'info'; export type TextProps = Omit, 'color'> & { as?: E; variant?: TextVariant; weight?: TextWeight; align?: TextAlign; color?: TextColor; truncate?: boolean; /** * One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a * responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx * merges into inline style; responsive sx injects a scoped class. */ sx?: SxProp; }; /** * Text — typography primitive. `variant` picks the semantic element and the * type scale in one prop. Override the rendered tag with `as` while keeping * the style (e.g. ``). * * @example * Page title * Subtle paragraph * Long caption… */ export declare const Text: (props: TextProps & { ref?: ForwardedRef; }) => ReactElement;