/** * Language detection utility for code snippets * Uses pattern matching and heuristics to identify programming languages */ interface LanguageDetectionResult { confidence: number; language: string; } /** * Detect the programming language of a code snippet * @param code - The code snippet to analyze * @returns Language detection result with confidence score */ declare function detectLanguage(code: string): LanguageDetectionResult | null; /** * Simple detection for common formats with high confidence * Falls back to detectLanguage for more complex detection */ declare function detectCodeLanguage(code: string): string | null; export { detectCodeLanguage, detectLanguage };