export type MentionNode = { type: 'mention'; attrs: EditorMentionAttributes & MentionRenderAttributes; }; export type EditorMentionAttributes = { mentionedUserId: string; mentionedUserName: string; mentionedUserEmail?: string; mentionId: string; }; export type MentionRenderAttributes = { authorId: string; mentionId: string; }; export type TextNode = { type: 'text'; text: string; marks?: Array<{ type: string; attrs?: Record; }>; }; export type ParagraphNode = { type: 'paragraph'; content?: (MentionNode | TextNode)[]; attrs?: Record; }; export type DocumentNode = { type: 'doc'; content: ParagraphNode[]; attrs?: Record; };