/** * CLI Commands Module * * Zero-config CLI interface for search-mcp. Provides direct command-line access * to indexing and searching without requiring MCP client setup. * * Commands: * - index: Create or update index for current project * - search: Search code with natural language queries * - status: Show index statistics and configuration * - reindex: Rebuild entire index from scratch * * Inspired by mcp-vector-search's excellent CLI UX. */ import { Command } from 'commander'; interface CLIOptions { json?: boolean; topK?: number; mode?: 'hybrid' | 'vector' | 'fts'; alpha?: number; docs?: boolean; verbose?: boolean; force?: boolean; } /** * Create or update index for current project */ declare function indexCommand(options: CLIOptions): Promise; /** * Search code with natural language query */ declare function searchCommand(query: string, options: CLIOptions): Promise; /** * Show index status and statistics */ declare function statusCommand(options: CLIOptions): Promise; /** * Rebuild entire index from scratch */ declare function reindexCommand(options: CLIOptions): Promise; /** * Delete index for current project */ declare function deleteCommand(options: CLIOptions): Promise; /** * Handle and display errors */ declare function handleError(error: unknown): void; /** * Create and configure the CLI program */ export declare function createCLI(): Command; /** * Run the CLI */ export declare function runCLI(args: string[]): Promise; export { indexCommand, searchCommand, statusCommand, reindexCommand, deleteCommand, handleError, }; //# sourceMappingURL=commands.d.ts.map