import { jsx as _jsx } from "react/jsx-runtime";
import { createMessageRendererRegistry, registerMessageRenderer, } from "../../../utils/messageTypeRegistry.js";
import { MarkdownRenderer } from "../../atoms/MarkdownRenderer/index.js";
import { ThinkingMessage } from "../ThinkingMessage/index.js";
import { ToolMessage } from "../ToolMessage/index.js";
export function createDefaultMessageRegistry(transformOptions, shouldParseIncompleteMarkdown) {
    const registry = createMessageRendererRegistry();
    registerMessageRenderer(registry, 'text', {
        component: ({ part }) => (_jsx(MarkdownRenderer, { content: part.data.text, transformOptions: transformOptions, shouldParseIncompleteMarkdown: shouldParseIncompleteMarkdown })),
    }, {
        isDefault: true,
    });
    registerMessageRenderer(registry, 'tool', {
        component: ({ part }) => _jsx(ToolMessage, Object.assign({}, part.data)),
    }, {
        isDefault: true,
    });
    registerMessageRenderer(registry, 'thinking', {
        component: ({ part }) => _jsx(ThinkingMessage, Object.assign({}, part.data)),
    }, {
        isDefault: true,
    });
    return registry;
}
//# sourceMappingURL=defaultMessageTypeRegistry.js.map
