/** * Language detection and tree-sitter grammar bindings * Compatible with globstar language support */ import { Language } from './types.js'; /** * Get the tree-sitter grammar for a language (sync version using cache) */ export declare function getLanguageGrammar(lang: Language): unknown; /** * Ensure a grammar is loaded (async) */ export declare function ensureGrammarLoaded(lang: Language): Promise; /** * Preload all commonly used grammars */ export declare function preloadGrammars(languages?: Language[]): Promise; /** * Decode a language string to Language enum * Compatible with globstar language codes */ export declare function decodeLanguage(language: string): Language; /** * Get language from file path extension */ export declare function getLanguageFromPath(filePath: string): Language; /** * Get file extension for a language */ export declare function getExtensionFromLanguage(lang: Language): string; /** * Get the comment identifier pattern for a language (escaped for regex) */ export declare function getCommentIdentifier(lang: Language): string; /** * Get the raw comment prefix for a language (not escaped) */ export declare function getCommentPrefix(lang: Language): string; //# sourceMappingURL=language.d.ts.map