import React from 'react'; import { ActionProps } from '../ResponseActions/ResponseActions'; import { SourcesCardProps } from '../SourcesCard'; export interface MessageProps extends Omit, 'role'> { /** Unique id for message */ id?: string; /** Role of the user sending the message */ role: 'user' | 'bot'; /** Message content */ content: string; /** Name of the user */ name?: string; /** Avatar src for the user */ avatar?: string; /** Timestamp for the message */ timestamp?: string; /** Set this to true if message is being loaded */ isLoading?: boolean; /** Unique identifier of file attached to the message */ attachmentId?: string; /** Name of file attached to the message */ attachmentName?: string; /** Callback for when attachment label is clicked */ onAttachmentClick?: () => void; /** Callback for when attachment label is closed */ onAttachmentClose?: (attachmentId: string) => void; /** Props for message actions, such as feedback (positive or negative), copy button, share, and listen */ actions?: { positive?: ActionProps; negative?: ActionProps; copy?: ActionProps; share?: ActionProps; listen?: ActionProps; }; sources?: SourcesCardProps; } export declare const Message: React.FunctionComponent; export default Message;