import { MarkEventType } from './app.events';
import { MessageType } from './messages.types';
export type MessagesMarkEventType = MarkEventType<{
    messageId?: number | null;
}>;
/**
 * Message event detail data.
 */
export type WyMessageEventDetailType = {
    /** The message data. */
    message: MessageType;
    /** The direction of the message. */
    direction: "inbound" | "outbound";
    /** Agent name when the message is from an AI agent. */
    agent?: string;
};
/**
 * Fired when a message is appended to a conversation.
 */
export type WyMessageEventType = CustomEvent<WyMessageEventDetailType> & {
    type: "wy-message" | `wy-message-${string}`;
    bubbles: false;
    composed: true;
};
declare global {
    interface ElementEventMap {
        "wy-message": WyMessageEventType;
    }
}
//# sourceMappingURL=messages.events.d.ts.map