import type { HTMLAttributes, ReactElement, ReactNode, Ref } from "react"; import type { ChatMessageProps } from "../../Chat/ChatMessage"; import type { ChatMessageErrorProps } from "../../Chat/ChatMessageError"; import type { ChatMessageLoaderProps } from "../../Chat/ChatMessageLoader"; import type { ChatMessageBase, ChatStatus } from "../../Chat/types"; export type ChatMessageLocale = { scrollToBottomText?: string; }; type ChatMessageWithoutContent = Omit, "content">; export type ChatMessagesProps = Omit, "children"> & { /** * The messages to display in the chat. */ messages: Message[]; /** * The props for the user message. */ userMessageProps?: ChatMessageWithoutContent | ((message: Message) => ChatMessageWithoutContent); /** * The props for the assistant message. */ assistantMessageProps?: ChatMessageWithoutContent | ((message: Message) => ChatMessageWithoutContent); /** * The props for the loader message. */ loaderProps?: ChatMessageLoaderProps; /** * The props for the error message. */ errorProps?: Omit; /** * The function to render the message. */ renderMessage?: (message: Message) => ReactNode; /** * The function to render the loader message. */ renderLoader?: ReactNode; /** * The function to render the error message. */ renderError?: ReactNode; /** * The status of the chat. */ status?: ChatStatus; /** * The function to reload the chat. */ onReload?: () => void; /** * Whether to hide the scroll to bottom button. */ hideScrollToBottom?: boolean; /** * The class name for the scroll container. */ scrollClassName?: string; /** * The class name for the content container. */ contentClassName?: string; /** * The locale for the chat messages. */ locale?: ChatMessageLocale; /** * Whether to enable right-to-left text direction. */ rtl?: boolean; }; /** * The `ChatMessages` component provides a list of messages to display in the chat. * * See the [ChatMessages documentation page](https://satellite.algolia.com/8261d6576/p/06f740-chat-messages) for more information. */ export declare const ChatMessages: (props: ChatMessagesProps & { ref?: Ref; }) => ReactElement | null; export {};