/** * Grammar loaders for all structural-merge–supported languages. * * Uses the unified language registry from `languages.ts` to map file paths * to the correct `tree-sitter-wasms` grammar WASM. */ import { type Language, type LoaderOptions } from "../loader.js"; /** Load the TypeScript grammar. */ export declare function loadTypeScriptGrammar(opts?: LoaderOptions): Promise; /** Load the TSX grammar. */ export declare function loadTsxGrammar(opts?: LoaderOptions): Promise; /** Load the JavaScript grammar (also used for JSX). */ export declare function loadJavaScriptGrammar(opts?: LoaderOptions): Promise; /** Load the Python grammar. */ export declare function loadPythonGrammar(opts?: LoaderOptions): Promise; /** Load the Go grammar. */ export declare function loadGoGrammar(opts?: LoaderOptions): Promise; /** Load the Rust grammar. */ export declare function loadRustGrammar(opts?: LoaderOptions): Promise; /** * Load the appropriate grammar for a given file path. * Returns `null` if the file extension is not supported or the grammar WASM * is unavailable. */ export declare function loadGrammarForFile(filePath: string, opts?: LoaderOptions): Promise; //# sourceMappingURL=ts.d.ts.map