import { BaseModule, ModuleMeta } from './base.module'; /** * 违规等级枚举 */ export declare enum ViolationLevel { NONE = 0, LOW = 1, MEDIUM = 2, HIGH = 3, CRITICAL = 4 } /** * 举报模块 - AI 内容审核 */ export declare class ReportModule extends BaseModule { readonly meta: ModuleMeta; private reportBans; private guildMessages; private reportedMessages; private readonly defaultReportPrompt; private readonly contextReportPrompt; protected onInit(): Promise; /** * 获取配置值 */ private getReportCooldownDuration; private getMinUnlimitedAuthority; private getMaxReportTime; private getDefaultPrompt; private getContextPrompt; /** * 获取群配置 * 优先使用群组配置文件中的 report 设置,如果没有则回退到全局设置中的 guildConfigs */ private getGuildConfig; /** * 注册消息监听器(收集上下文) */ private registerMessageListener; /** * 注册命令 */ private registerCommands; /** * 调用 AI 进行内容审核 */ private callModeration; /** * 处理违规 */ private handleViolation; /** * 获取违规等级文本 */ private getViolationLevelText; /** * 执行操作 */ private executeAction; /** * 警告用户 */ private warnUser; /** * 禁言用户 */ private banUser; /** * 按秒数禁言用户 */ private banUserBySeconds; /** * 踢出用户 */ private kickUser; /** * 记录命令日志 */ protected logCommand(session: any, command: string, target: string, details: string): Promise; /** * 设置清理任务 */ private setupCleanupTask; }