/** * QQ 适配器类型定义与常量 * * 从 qq-adapter.ts 提取,包含模块级常量、OpCode/Intents 枚举和接口。 */ export declare const QQ_MESSAGE_LIMIT = 3000; export declare const QQ_API_BASE = "https://api.sgroup.qq.com"; export declare const QQ_OAUTH_BASE = "https://bots.qq.com/app/getAppAccessToken"; export declare const QQ_GATEWAY_URL = "https://api.sgroup.qq.com/gateway/bot"; export declare const OpCode: { readonly DISPATCH: 0; readonly HEARTBEAT: 1; readonly IDENTIFY: 2; readonly RESUME: 6; readonly RECONNECT: 7; readonly HELLO: 10; readonly HEARTBEAT_ACK: 11; }; export declare const Intents: { GUILDS: number; GUILD_MEMBERS: number; DIRECT_MESSAGE: number; GROUP_AND_C2C: number; AUDIO_ACTION: number; AT_MESSAGES: number; }; export declare const FULL_INTENTS: number; export type QQProtocol = 'official' | 'onebot'; export type OneBotEvent = { post_type: string; message_type?: string; message_id?: number; user_id?: number; group_id?: number; message?: string | OneBotMessageSegment[]; raw_message?: string; self_id?: number; }; export type OneBotMessageSegment = { type: string; data: Record; }; export type OneBotAttachmentData = { file?: string; url?: string; filename?: string; size?: number; file_size?: number; }; export type QQCardPayload = { qqText?: string; content?: string; text?: string; markdown?: string; forcePlainText?: boolean; }; export type QQWSMessage = { op: number; s?: number; t?: string; d?: unknown; }; export type QQGatewayResponse = { url: string; shards?: number; session_start_limit?: { total: number; remaining: number; reset_after: number; }; }; export type QQDispatchData = { id?: string; session_id?: string; content?: string; timestamp?: string; author?: { id?: string; user_openid?: string; member_openid?: string; }; group_id?: string; channel_id?: string; guild_id?: string; attachments?: Array<{ content_type?: string; filename?: string; url?: string; size?: number; }>; }; //# sourceMappingURL=qq-adapter-types.d.ts.map