import { BaseConversationItem, ConversationState } from "./conversation";

/**
 * 聊天对话项（类型为1）
 */
export interface ChatConversationItem extends BaseConversationItem {
  type: 1;
}

// 消息类型
export interface Message {
  text: string;
  sender: "user" | "ai"; // 消息发送者
  sentAt: string; // ISO 8601 格式的字符串表示日期和时间
}

export interface ChatConversationState extends ConversationState {
  conversationList: ChatConversationItem[];
  currentConversationMessages: Message[];
}
