import type { SendChatMessageContent, SendChatMessageOptions } from "../../utils/globals"; import type { ContentType } from "./types"; /** Metadata key for markdown stored as `content_type: text`. Must match dashboard `message-rendering.ts`. */ export declare const RICH_FORMAT_METADATA_KEY = "rich_format"; export declare const RICH_FORMAT_MARKDOWN = "markdown"; /** Must match `MESSAGE_SOURCE_METADATA_KEY` in app `message-source.ts`. */ export declare const MESSAGE_SOURCE_METADATA_KEY = "message_source"; export interface NormalizedOutgoingMessage { content: string; content_type: ContentType; metadata: Record; } export declare function isRichUserMessage(message: { content_type: string; metadata?: Record; }): boolean; /** Whether a stored message should use the rich HTML renderer in the widget. */ export declare function messageUsesRichRendering(message: { sender_type: string; content_type: string; metadata?: Record; }): boolean; /** * Normalize integrator input into stored message fields. */ export declare function normalizeSendChatMessageContent(input: SendChatMessageContent, options?: SendChatMessageOptions): NormalizedOutgoingMessage | null;