import type { TuituiTeamsTarget } from "@qihoo/tuitui-bot-sdk"; export declare const CHAT_TYPE_DIRECT: "direct"; export declare const CHAT_TYPE_GROUP: "group"; export declare const CHAT_TYPE_CHANNEL: "channel"; export type ChatType = typeof CHAT_TYPE_DIRECT | typeof CHAT_TYPE_GROUP | typeof CHAT_TYPE_CHANNEL; export declare function guessChatType(chatId: string): ChatType; export declare function guessChatTypeV2(account: any, chatId: string): Promise<{ chatId: string; chatType: ChatType; }>; export declare function teamsBuildChatId(team_id: string, channel_id: string, thread_id: string): string; export declare function teamsParseChatId(chatId: string): TuituiTeamsTarget; export interface TuiTuiSessionKeyInfo { chat_type: ChatType; channel_id: string; thread_id: string; } export declare function parseSessionKey(str: string): TuiTuiSessionKeyInfo; export declare function parseChatFromSessionKey(sessionKey: string): { chatType: ChatType; chatId: string; } | null; /** * 将推推内部的 chatId 转换为 OpenClaw 路由层使用的 peer.id 格式 * 对于单聊和群聊,直接保持原样;对于频道(Teams),转换为 `channel_id:thread:parent_id` 格式 */ export declare function buildPeerIdFromChatId(chatId: string, chatType: ChatType): string;