import { L as LanguageSlug } from './registry-LNKwlYez.cjs'; export { d as detectLanguageSlugByShebang } from './shebang-C4Il7xhQ.cjs'; interface ProjectLanguageDetection { /** Detected language slug. */ slug: LanguageSlug; /** Number of filenames or paths matched to this language. */ files: number; } /** * Detects all language slugs that match a filename or path. * * This uses the lightweight extension index, so consumers can detect filenames * without importing the full language catalog. * * @example * detectLanguageSlugs("include/config.h"); * // ["c", "cpp"] */ declare const detectLanguageSlugs: (filename: string) => LanguageSlug[]; /** * Detects the first language slug that matches a filename or path. * * Use `detectLanguageSlugs` when you need to handle ambiguous extensions such as `.h`. * * @example * detectLanguageSlug("src/index.ts"); * // "typescript" */ declare const detectLanguageSlug: (filename: string) => LanguageSlug | undefined; /** * Detects languages used by a project file list and counts matched files per language. * * Unmatched filenames are ignored. Ambiguous extensions use the first matching language, * matching `detectLanguageSlug` behavior. * * @example * detectProjectLanguages(["src/index.ts", "src/app.ts", "README.md"]); * // [{ slug: "typescript", files: 2 }, { slug: "markdown", files: 1 }] */ declare const detectProjectLanguages: (filenames: Iterable) => ProjectLanguageDetection[]; export { type ProjectLanguageDetection, detectLanguageSlug, detectLanguageSlugs, detectProjectLanguages };