import * as React from 'react'; import { BoxProps } from '../Box'; import { MediaQueries, Variants } from '../index'; export declare type TextProps = { /** * Gain access to the internal ref */ innerRef?: Function | Object; /** * If `true`, sets `display: inline-block`, otherwise it defaults to `display: block` */ inline?: boolean; /** * Maps to CSS `textAlign` property */ align?: 'left' | 'center' | 'right'; /** * Sets `fontStyle: italic` */ italic?: boolean; /** * Sets `whiteSpace: nowrap`, `overflow: hidden`, `textOverflow: ellipsis` */ truncate?: boolean; /** * Maps to CSS `fontSize` property. Accepts an index to `fontSizes` theme when using a numeric value, sets a pixel value if a no theme value found. */ size?: number | string; /** * Maps to CSS `textDecoration` property */ underline?: string; /** * Maps to CSS `fontWeight` property */ weight?: number | string; /** * Sets `whiteSpace: nowrap` when `false` */ wrap?: boolean; } & BoxProps; declare type Props = React.RefAttributes & React.HTMLAttributes & TextProps & MediaQueries & Variants; export declare function Text({ as, innerRef, ...props }: Props): JSX.Element; export {};