import { AvatarProps } from '../avatar'; import type { TNode } from '../common'; export interface TdCommentProps { actions?: Array | TNode; author?: string | TNode; avatar?: string | AvatarProps | TNode; content?: string | TNode; datetime?: string | TNode; folds?: CommentFold; defaultFolds?: CommentFold; modelValue?: CommentFold; reply?: string | TNode; onActions?: (context: { action: CommentActionItem | TNode; e: Event; }) => void; onFolds?: (context: { fold: CommentFold; e: Event; }) => void; } export type ActionPlacement = 'start' | 'end'; export interface CommentActionItem { key: string; content?: string | TNode; placement?: ActionPlacement; disabled?: boolean; } export type CommentFoldState = 'collapsed' | 'partial' | 'expanded'; export interface CommentFold { state: CommentFoldState; total?: number; step?: number; content?: Partial>; }