import React from 'react'; import { Font, FontSize, FontSizeUpgrade, FontWeight, Color } from '../../interfaces'; export interface TextProps { /** Component */ as?: 'p' | 'span'; /** Text content */ children: React.ReactNode | React.ReactNode[]; /** Color of the text */ color?: Color; /** Font face of the text */ font?: Font; /** Letter spacing */ letterSpacing?: React.CSSProperties['letterSpacing']; /** Size of the font */ size?: FontSize | FontSizeUpgrade; /** Use new font API */ upgrade?: boolean; /** Font uppercase */ uppercase?: boolean; /** Font weight of the text */ weight?: FontWeight; } declare const Text: ({ as, children, color, size, font, letterSpacing, uppercase, weight, upgrade, ...other }: TextProps & React.HTMLAttributes) => JSX.Element; export default Text;