import React, { HTMLAttributes } from 'react'; import { StyledProps } from '@harnessio/design-system'; import { IconName, IconProps } from '@harnessio/icons'; import { OptionalTooltip } from '@harnessio/design-system'; export interface TextProps extends HTMLAttributes, StyledProps, OptionalTooltip { lineClamp?: number; /** When true, tooltip will always be shown (even in case lineClamp event is not triggered: no `...` is rendered) */ alwaysShowTooltip?: boolean; /** Left icon */ icon?: IconName | React.ReactElement; /** Optional props for left icon */ iconProps?: Partial; /** Right icon */ rightIcon?: IconName; /** Optional props for right icon */ rightIconProps?: Partial; /** Optional HTML tag. Default is 'p' */ tag?: string; } export declare function Text(props: TextProps): JSX.Element; export declare const SupText: React.FC;