import React, { ComponentProps, ReactNode } from 'react'; import { EllipsisConfig } from 'antd/lib/typography/Base'; import { M as MentionEntity, T as TagEntity, L as LinkEntity } from '../types-BRt4hd7A.cjs'; export { B as BaseEntity, C as ContentEntity, P as ParsedMention, a as ProcessedContent } from '../types-BRt4hd7A.cjs'; import { TachTypography } from '@hublib-web/tach-typography/react'; import * as react_jsx_runtime from 'react/jsx-runtime'; export { findAllEntities, findLinks, findMentions, findTags, mentionLinkRegexp, parseMention, processContent } from '../core/index.cjs'; type CustomEllipsisConfig = ({ count: number; rows?: never; expandable?: boolean; } & Partial) | ({ rows: number; count?: never; expandable?: boolean; } & Partial) | false; type ParagraphBodyProps = ComponentProps; type TextBodyProps = ComponentProps; type TitleBodyProps = ComponentProps; interface ContentTextProps { className?: string; weight?: TextBodyProps["weight"]; text?: string | null; ellipsis?: CustomEllipsisConfig; blur?: boolean; style?: TextBodyProps["style"]; onView?: () => void; renderMention?: (entity: MentionEntity, index: number) => ReactNode; renderTag?: (entity: TagEntity, index: number) => ReactNode; renderLink?: (entity: LinkEntity, index: number) => ReactNode; ParagraphComponent?: React.ComponentType; TextComponent?: React.ComponentType; TitleComponent?: React.ComponentType; } declare const ContentText: React.NamedExoticComponent; type BaseContentTextProps = Omit, "renderMention" | "renderTag"> & { renderMention?: (entity: MentionEntity, index: number) => React.ReactNode; renderTag?: (entity: TagEntity, index: number) => React.ReactNode; }; declare const ContentTextWithSuggestions: ({ renderMention, renderTag, ...props }: BaseContentTextProps) => react_jsx_runtime.JSX.Element; interface ContentTitleWithSuggestionsProps extends Omit, "weight"> { } declare const ContentTitleWithSuggestions: ({ text, ellipsis, blur, ...rest }: ContentTitleWithSuggestionsProps) => react_jsx_runtime.JSX.Element; export { ContentText, type ContentTextProps, ContentTextWithSuggestions, ContentTitleWithSuggestions, LinkEntity, MentionEntity, TagEntity };