import React, { ReactNode, ReactElement } from 'react'; import { CommonProps } from '../common'; export interface CommentProps extends CommonProps { /** * Custom actions for the comment, eg. Edit, Share, Copy. */ actions?: ReactElement; /** * Whether to always show actions or on hover only. */ alwaysShowActions?: boolean; /** * Author text. */ author: string; /** * Details about author. */ authorDetails?: string; /** * Author avatar. */ avatar?: string | ReactElement; /** * Nested comments should be provided as children of the Comment. */ children?: ReactNode; /** * The main content of the comment. */ content: string | ReactElement; /** * A datetime element containing the time to be displayed. */ datetime?: string; /** * Custom reaction section for the comment. */ reactions?: ReactElement; } declare const Comment: { ({ avatar, author, authorDetails, datetime, content, children, actions, reactions, alwaysShowActions, id, className, style, sx, "data-test-id": dataTestId, }: CommentProps): ReactElement; Editor: ({ avatar, onChange, onSubmit, submitting, value, actions, }: import("./Editor").EditorProps) => React.ReactElement>; }; export default Comment;