/** * Grammar Loader * * Public API for loading tree-sitter grammars and creating parsers. * Delegates to the TreeSitterAdapter for actual parsing operations. * * Consumers should import from this module rather than the adapter directly. */ import type { ASTLanguage } from '../ast.types.js'; import { type TreeSitterLanguage, type TreeSitterParser } from './tree-sitter-adapter.interface.js'; /** * Load a tree-sitter language grammar (cached) */ export declare function loadLanguage(language: ASTLanguage): Promise; /** * Create a new parser instance configured for a language */ export declare function createParser(language: ASTLanguage): Promise; /** * Clear cached grammars (for testing) */ export declare function clearGrammarCache(): void; //# sourceMappingURL=grammar-loader.d.ts.map