import type { CommentReplyItem } from './reply-item' import type { CommentItem } from './comment-item' import type { CommentArea } from './comment-area' /** 评论更新的事件类型 */ export const RepliesUpdateEventType = 'repliesUpdate' /** 评论更新的事件回调类型 */ export type RepliesUpdateEventCallback = (event: CustomEvent) => void export type CommentItemCallback = (item: CommentItem) => void export type CommentAreaCallback = (area: CommentArea) => void export type CommentCallbackPair void> = { added?: T; removed?: T } export type CommentCallbackInput void> = | CommentCallbackPair | T