import type { ApiClient } from "./api-client.js"; import type { SessionManager } from "./session-manager.js"; import type { QBSession, QqSettings } from "./types.js"; /** * QQ 消息中的命令处理器。 * 解析 #cmd args 格式的命令并执行。 */ export declare function createCommandHandler(api: ApiClient, sessionManager: SessionManager, callbacks: { sendUserMessage: (text: string) => void; switchSession: (name: string) => void; newSession: () => void; clearSession: () => void; getSettings: () => QqSettings; updateSettings: (update: Partial) => void; }): { tryHandle: (text: string, from: QBSession) => Promise; }; export type CommandHandler = ReturnType;