import { SupportedLanguage } from "./base.js"; /** * Language detection result with confidence level. */ export interface LanguageDetectionResult { language: SupportedLanguage; confidence: "high" | "medium" | "low"; reason: string; } /** * Detects the programming language of a project based on its directory contents. */ export declare class LanguageDetector { private cwd; constructor(cwd?: string); /** * Detect the primary language of the project. * @returns The detected language and confidence level, or null if no supported language detected */ detect(): LanguageDetectionResult | null; /** * Check if a specific language is detected in the project. */ private checkLanguage; /** * Check if a file exists in the project directory. */ private fileExists; /** * Check if files with specific extensions exist in the current directory. */ private hasFilesWithExtensions; /** * Get all supported languages. */ static getSupportedLanguages(): SupportedLanguage[]; /** * Check if a language is supported. */ static isSupported(language: string): language is SupportedLanguage; } //# sourceMappingURL=language-detector.d.ts.map