import { FontStyleProperty, FontWeightProperty, TextDecorationProperty } from 'csstype'; import React, { HTMLAttributes } from 'react'; import { ExternalStyles, TextColor } from '../../styles'; import { TypographyVariant } from '../../styles/theme/createTypography'; import { Omit } from '../../util'; export interface BaseTextProps { component?: React.ElementType; variant?: TypographyVariant; color?: TextColor; fontSize?: number; fontWeight?: FontWeightProperty; fontStyle?: FontStyleProperty; textDecoration?: TextDecorationProperty; style?: ExternalStyles; [key: string]: any; } export type TextProps = Omit, 'style'> & BaseTextProps; export declare function Text

(props: P & BaseTextProps): JSX.Element; export declare namespace Text { var defaultProps: { component: string; variant: string; }; }