'use client';

/**
 * This file was automatically generated by the Stencil React Output Target.
 * Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
 */

/* eslint-disable */

import type { EventName, StencilReactComponent } from '@stencil/react-output-target/runtime';
import { createComponent } from '@stencil/react-output-target/runtime';
import { type AiChatCustomEvent, type ChatMessage } from "hxy-stencil-ai-chat";
import { AiChat as AiChatElement, defineCustomElement as defineAiChat } from "hxy-stencil-ai-chat/dist/components/ai-chat.js";
import React from 'react';

export type AiChatEvents = {
    onMessageClick: EventName<AiChatCustomEvent<ChatMessage>>,
    onMessageLongPress: EventName<AiChatCustomEvent<ChatMessage>>,
    onMessageSend: EventName<CustomEvent<{ content: string; timestamp: number }>>
};

export const AiChat: StencilReactComponent<AiChatElement, AiChatEvents> = /*@__PURE__*/ createComponent<AiChatElement, AiChatEvents>({
    tagName: 'ai-chat',
    elementClass: AiChatElement,
    // @ts-ignore - ignore potential React type mismatches between the Stencil Output Target and your project.
    react: React,
    events: {
        onMessageClick: 'messageClick',
        onMessageLongPress: 'messageLongPress',
        onMessageSend: 'messageSend'
    } as AiChatEvents,
    defineCustomElement: defineAiChat
});
