import { QWENPAW_DEFAULT_AGENT_ID } from '../../common/constants/qwenpaw.constant'; import { ICodingTurn, IQwenpawChatMessage, IQwenpawChatSummary, IQwenpawGroup, IQwenpawResolvedConnection } from './qwenpaw.type'; export { QWENPAW_DEFAULT_AGENT_ID }; /** GET /api/chats — list the agent's conversations. */ export declare const listQwenpawChats: (connection: IQwenpawResolvedConnection) => Promise; /** GET /api/chats/groups — the agent's conversation groups. */ export declare const listQwenpawGroups: (connection: IQwenpawResolvedConnection) => Promise; /** DELETE /api/chats/{chatId} — delete a conversation. */ export declare const deleteQwenpawChat: (connection: IQwenpawResolvedConnection, chatId: string) => Promise; /** GET /api/chats/{id} — full message history of one chat. */ export declare const getQwenpawChatMessages: (connection: IQwenpawResolvedConnection, chatId: string) => Promise; /** Normalize QwenPaw messages into the display-log turn shape: user * texts + assistant MESSAGE texts; reasoning/plugin_call entries are * skipped (chain of thought and tool chatter stay out of the answer). * Message timestamps are carried through. Long conversations keep the * LAST `QWENPAW_MAX_HISTORY_TURNS` turns. */ export declare const messagesToTurns: (messages: IQwenpawChatMessage[]) => ICodingTurn[]; /** The model that served the latest turn (message metadata), if any. */ export declare const extractChatModel: (messages: IQwenpawChatMessage[]) => string; /** History for one chat id: fetch → normalize → carry the model name. */ export declare const fetchChatHistory: (connection: IQwenpawResolvedConnection, chatId: string) => Promise<{ turns: ICodingTurn[]; model: string; }>; //# sourceMappingURL=chats.d.ts.map