import { XaiModelType } from '../../ai-provider';
import { ChatbotAgent, ChatbotAttach, ChatbotMessage, XaiAgentPET } from './chatbot-types';
export declare const defaultChatid = "xaichat_1000";
/**
 * create first Default chatAgent
 */
export declare function createDefaultChatbotAgent(xaiModel: XaiModelType, pet?: Omit<XaiAgentPET, 'modelId' | 'group'>): ChatbotAgent;
/**
 *
 * @param xaiModel
 * @param pet
 * @returns agent
 */
export declare function newChatbotAgent(xaiModel: XaiModelType, pet: XaiAgentPET): ChatbotAgent;
/**
 *
 * @param chatid string required
 * @param text string
 * @returns ChatbotMessage
 */
export declare function createNewUserMessage(chatid: string, text: string): ChatbotMessage;
export declare function createInitAssistantMessage(chatid: string, reqid?: string): ChatbotMessage;
/**
 * when data not contains some.chatid return null
 * @param data
 * @param some
 * @returns data or null
 *
 */
export declare function updateSomeChatbotMessage(data: ChatbotMessage[], some: Omit<ChatbotMessage, 'chatid' | 'created' | 'inversion' | 'role'>): ChatbotMessage[] | null;
/**
 *
 * @param attaches
 * @param attach
 * @returns ChatbotAttach[]
 */
export declare function mergeMessageAttach(attaches: ChatbotAttach[], attach: ChatbotAttach): ChatbotAttach[];
