import React from "react"; import { ColorSpecifier } from "../../theme/theme"; import { BoxProps } from "../layout/box"; type TextKind = "display1" | "display2" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "sub" | "small" | "fine" | "span"; type TextElement = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "small" | "span"; type AlignType = "left" | "right" | "center" | "justify" | "justify-all" | "start" | "end" | "match-parent"; interface TextProps extends Omit { elem?: TextElement; kind?: TextKind; children?: React.ReactNode; font?: string; align?: AlignType; underline?: boolean; strike?: boolean; bold?: boolean; italic?: boolean; color?: ColorSpecifier; invert?: boolean; h1?: boolean; h2?: boolean; h3?: boolean; h4?: boolean; h5?: boolean; h6?: boolean; p?: boolean; small?: boolean; span?: boolean; } declare const Text: React.ForwardRefExoticComponent & React.RefAttributes>; export default Text;