/** * 命令解析模块 * 定义和解析机器人命令 */ export interface Command { name: string; description: string; usage: string; adminOnly: boolean; } export interface ParsedCommand { command: string; args: string[]; rawArgs: string; } export declare const COMMANDS: Record; export declare function isCommand(text: string): boolean; export declare function parseCommand(text: string): ParsedCommand | null; export declare function getCommand(name: string): Command | null; export declare function getAvailableCommands(isAdmin: boolean): Command[]; export declare function formatHelpMessage(isAdmin: boolean): string; export declare function formatCommandError(message: string): string; export declare function formatCommandSuccess(message: string): string; //# sourceMappingURL=parser.d.ts.map