import type { HTMLAttributes, ReactNode } from "react";
import type { ButtonProps } from "../../Actions";
import type { ChatMessageProps } from "../../Chat/ChatMessage";
export type ChatMessageErrorLocale = {
error?: string;
retry?: string;
};
export type ChatMessageErrorProps = Omit, "children"> & Pick & {
/**
* Content to render as the error message.
* If not provided, a default error message will be shown.
*/
renderError?: ReactNode;
/**
* Content to render below the error message.
*/
renderFooter?: ReactNode;
/**
* Optional actions to display below the error message.
* If not provided, a default retry button will be shown.
*/
actions?: ButtonProps[];
/**
* Callback function to be called when the retry button is clicked.
* If not provided, the default retry button will not have any action.
*/
onReload?: () => void;
/**
* Optional locale.
*/
locale?: ChatMessageErrorLocale;
};
/**
* The `ChatMessageError` component provides a message to display when an error occurs.
*
* See the [ChatMessageError documentation page](https://satellite.algolia.com/8261d6576/p/06f740-chat-message-error) for more information.
*/
export declare const ChatMessageError: import("react").ForwardRefExoticComponent, "children"> & Pick & {
/**
* Content to render as the error message.
* If not provided, a default error message will be shown.
*/
renderError?: ReactNode;
/**
* Content to render below the error message.
*/
renderFooter?: ReactNode;
/**
* Optional actions to display below the error message.
* If not provided, a default retry button will be shown.
*/
actions?: ButtonProps[];
/**
* Callback function to be called when the retry button is clicked.
* If not provided, the default retry button will not have any action.
*/
onReload?: () => void;
/**
* Optional locale.
*/
locale?: ChatMessageErrorLocale;
} & import("react").RefAttributes>;