import React from 'react'; import { BaseRange } from 'slate'; import { CommentDataType, MarkdownEditorProps } from '../../../types'; /** * 评论视图组件的属性接口 */ interface CommentViewProps { /** 子元素 */ children: React.ReactNode; /** 评论配置对象 */ comment: MarkdownEditorProps['comment']; /** 评论数据列表 */ commentItem: CommentDataType[]; /** 评论的唯一标识符 */ id: string; /** Slate.js 选择范围 */ selection?: BaseRange; /** 哈希标识符用于样式类名 */ hashId: string; /** 设置显示评论的回调函数 */ setShowComment?: (comments: CommentDataType[]) => void; } /** * 评论视图组件 - 显示和管理 Markdown 编辑器中的评论 * * 功能特性: * - 显示评论标记和高亮 * - 支持点击查看评论详情 * * @param props - 组件属性 * @returns 渲染的评论视图组件 */ export declare const CommentView: (props: CommentViewProps) => React.JSX.Element; /** * 评论创建组件的属性接口 */ interface CommentCreateProps { /** 评论配置对象 */ comment: MarkdownEditorProps['comment']; } /** * 评论创建组件 - 提供创建新评论的界面 * * 功能说明: * - 如果提供了自定义的编辑器渲染器,则使用自定义渲染 * - 否则渲染默认的空白创建界面 * - 支持测试标识符以便于测试 * * @param props - 组件属性 * @returns 渲染的评论创建组件 */ export declare const CommentCreate: (props: CommentCreateProps) => string | number | boolean | Iterable | React.JSX.Element | null | undefined; export {};