import type { MentionSelectionState } from './Mentions.types'; import type { ResolvedMentionSource } from './resolve-sources'; import type { MentionSpan } from './utils/walk-mentions'; export interface HighlightTextSegment { type: 'text'; text: string; } export interface HighlightMentionSegment { type: 'mention'; text: string; key: string; id: string; display: string; trigger: string; plainStart: number; plainEnd: number; className?: string; style?: React.CSSProperties; selectionState: MentionSelectionState | null; } export type HighlightSegment = HighlightTextSegment | HighlightMentionSegment; export declare function buildHighlightSegments(plainText: string, spans: MentionSpan[], sources: ResolvedMentionSource[], selectionStates: Map): HighlightSegment[];