/** * QQ 平台适配器 * * 支持两种协议: * 1. official - QQ 官方频道机器人 API(稳定可靠) * 2. onebot - OneBot 协议(NapCat/go-cqhttp,社区方案) */ import type { PlatformAdapter, PlatformMessageEvent, PlatformActionEvent, PlatformSender } from '../types.js'; export declare class QQAdapter implements PlatformAdapter { readonly platform: "qq"; private readonly sender; private readonly messageCallbacks; private readonly actionCallbacks; private readonly messageConversationMap; private officialClient; private onebotClient; private isActive; constructor(); start(): Promise; private startOfficialProtocol; private startOneBotProtocol; stop(): void; getSender(): PlatformSender; onMessage(callback: (event: PlatformMessageEvent) => void): void; onAction(callback: (event: PlatformActionEvent) => void): void; isAdapterActive(): boolean; getConversationByMessageId(messageId: string): string | undefined; rememberMessageConversation(messageId: string, conversationId: string): void; forgetMessageConversation(messageId: string): void; sendRawMessage(conversationId: string, text: string): Promise; sendRawMarkdownMessage(conversationId: string, markdown: string): Promise; sendRawPlainTextMessage(conversationId: string, text: string): Promise; deleteMessage(messageId: string): Promise; bindSession(conversationId: string, sessionId: string, creatorId: string): void; getSessionId(conversationId: string): string | null; } export declare const qqAdapter: QQAdapter; //# sourceMappingURL=qq-adapter.d.ts.map