/** * Command Completer for CLI * Provides tab completion for slash commands */ /** * Command definition */ export interface CommandDef { name: string; description: string; aliases?: string[]; } /** * Available slash commands */ export declare const COMMANDS: CommandDef[]; /** * Get all command names (including aliases) */ export declare function getAllCommandNames(): string[]; /** * Readline completer function for slash commands * Enhanced to show descriptions when multiple matches * @param line Current input line * @returns [completions, substring] tuple for readline */ export declare function commandCompleter(line: string): [string[], string]; /** * Render command help as formatted string with clean styling */ export declare function renderCommandHelp(): string; /** * Check if input is a known command */ export declare function isCommand(input: string): boolean; /** * Get command definition by name (including alias lookup) */ export declare function getCommandDef(input: string): CommandDef | undefined; /** * Render command suggestions inline (for real-time display) * @param input Current input (starting with /) * @returns Formatted suggestion string */ export declare function renderCommandSuggestions(input: string): string; //# sourceMappingURL=completer.d.ts.map