import * as React from 'react'; export interface FusionEllipsisProps { style?: React.CSSProperties; className?: string; /** * 用于决定省略号出现的位置 */ ellipsisPosition?: 'middle' | 'end'; /** * 在 ellipsisPosition="middle" 生效 * 决定出现在末尾的字符串的数量 */ endCharCount?: number; /** * 是否有 tooltip */ hasTooltip?: boolean; /** * tooltip 属性覆盖 */ tooltipProps?: any; } interface FusionEllipsisState { isOverflow: boolean; } export declare class Ellipsis extends React.Component { static displayName: string; static defaultProps: { ellipsisPosition: string; endCharCount: number; hasTooltip: boolean; }; private textRef; constructor(props: any); componentDidMount(): void; onMouseEnter: () => void; saveTextRef: (ref: any) => void; render(): JSX.Element; } export interface TextClipProps { style?: React.CSSProperties; className?: string; /** * 待展示的文本 */ children: React.ReactNode; /** * 最多展示几行文本 */ line?: number; } export declare const TextClip: React.FC; export {};