import { h } from 'preact'; import { TipTapDoc } from '../../../../posthog-conversations-types'; interface RichContentProps { /** Rich content in TipTap JSON format (preferred) */ richContent?: TipTapDoc; /** Plain text fallback if rich_content is missing or invalid */ content: string; /** Whether message is from customer (affects styling) */ isCustomer: boolean; /** Link color, defaults to the theme's primary color (or the text color on it for customer messages) */ linkColor?: string; /** Recognize simple [label](url) links in the greeting's text fallback only. */ isGreeting?: boolean; } /** * RichContent component - renders TipTap JSON content with plain text fallback * * Rendering logic: * 1. If richContent is present and valid, render as TipTap tree * 2. Otherwise render text, recognizing simple inline links only for greetings * 3. Wrap TipTap rendering in try/catch for safety */ export declare function RichContent({ richContent, content, isCustomer, linkColor, isGreeting }: RichContentProps): h.JSX.Element; export {};