/** * Language registry for the structural merge engine. * * Maps file extensions → language identifiers → tree-sitter grammar WASM names. * Grammar WASM names correspond to the filenames published by `tree-sitter-wasms`. */ export type SupportedLanguage = "typescript" | "tsx" | "javascript" | "jsx" | "python" | "go" | "rust"; export interface LanguageSpec { /** Grammar WASM name as published in `tree-sitter-wasms/out/` */ grammarName: string; /** File extensions handled by this language (lowercase, with dot) */ extensions: string[]; } export declare const LANGUAGE_SPECS: Record; /** * Detect the language for a given file path. * Returns `null` if the file extension is not supported. */ export declare function languageForFile(filePath: string): SupportedLanguage | null; /** * Returns `true` if the file can be handled by the structural merge engine. * * Excludes TypeScript declaration files (`.d.ts`) — they have no implementation * to merge. Excludes `.min.js` and other generated bundles via the generated-file * detector in the main resolver pipeline. */ export declare function isStructuralLanguage(filePath: string): boolean; /** * Return the grammar WASM name for a file, or `null` if not supported. */ export declare function grammarNameForFile(filePath: string): string | null; //# sourceMappingURL=languages.d.ts.map