import React from 'react'; import { PopoverProps } from '../popover'; import { TooltipProps } from '../tooltip'; import { ArrayElement } from '../_base/base'; import { strings } from '@douyinfe/semi-foundation/typography/constants'; export type EllipsisPos = 'end' | 'middle'; export type ShowTooltip = { type?: string; opts?: Partial & Partial; }; export type Ellipsis = { collapseText?: string; collapsible?: boolean; expandText?: string; expandable?: boolean; pos?: EllipsisPos; rows?: number; showTooltip?: boolean | ShowTooltip; suffix?: string; onExpand?: (expanded: boolean, event: React.MouseEvent) => void; }; export type OmitTypographyProps = 'dangerouslySetInnerHTML'; export type TypographyBaseType = ArrayElement; export type TypographyBaseSize = ArrayElement; export type TypographyBaseSpacing = ArrayElement;