import * as React from 'react'; import type { AgMessage } from '../types.js'; import { getMessageText } from '../text.js'; import { MessageParts } from './MessageParts.js'; import { MessageAction, MessageActions } from './MessageActions.js'; import type { MessagePartsProps } from './MessageParts.js'; export interface MessageLabels { you?: string; assistant?: string; system?: string; tool?: string; copy?: string; copied?: string; regenerate?: string; thumbsUp?: string; thumbsDown?: string; } export interface MessageRootProps { /** The message to render (role, parts and metadata). */ message: AgMessage; /** Display name of the author. */ author?: string | undefined; /** BCP 47 locale used for the timestamp. */ locale?: string | undefined; /** IANA time zone used for the timestamp. */ timeZone?: string | undefined; /** Overrides for the built-in, localizable UI strings. */ labels?: MessageLabels | undefined; /** Class name merged onto the root element. */ className?: string | undefined; /** Content rendered inside the component. */ children?: React.ReactNode; /** Ref to the rendered root element. */ ref?: React.Ref; } export declare function MessageRoot({ message, author, locale, timeZone, labels, className, children, ref, }: MessageRootProps): React.JSX.Element; export declare function MessageAvatar({ children }: { children?: React.ReactNode; }): React.JSX.Element; export declare function MessageContent({ children }: { children?: React.ReactNode; }): React.JSX.Element; export declare function MessageFooter({ children }: { children?: React.ReactNode; }): React.JSX.Element; export interface MessageComponent { (props: MessageRootProps): React.ReactElement; Root: typeof MessageRoot; Avatar: typeof MessageAvatar; Content: typeof MessageContent; Footer: typeof MessageFooter; Parts: typeof MessageParts; getText: typeof getMessageText; } export declare const Message: MessageComponent & { Parts: typeof MessageParts; Actions: typeof MessageActions; Action: typeof MessageAction; }; export type { MessagePartsProps }; //# sourceMappingURL=Message.d.ts.map