import { Parser } from 'web-tree-sitter'; import type { LanguageConfig } from './language-config.js'; /** * Resolve a vendored wasm filename to an absolute path. Defaults to the * package's wasm/ directory (copied into dist/wasm at build time, so from * compiled output this is dist/wasm/). MONOMIND_WASM_DIR overrides the base * directory — used by tests to simulate a broken/missing grammar. */ export declare function resolveWasmPath(wasmFile: string): string; export declare function loadConfig(ext: string): Promise; export declare function getParser(ext: string): Promise<{ parser: Parser; config: LanguageConfig; } | null>; export declare function isSupportedExtension(ext: string): boolean; export declare function getLanguageForExt(ext: string): string; export interface ParseResult { nodes: import('../types.js').MonographNode[]; edges: import('../types.js').MonographEdge[]; parseErrors: string[]; } export declare function parseFile(absolutePath: string, sourceText: string, repoRelativePath: string): Promise; //# sourceMappingURL=loader.d.ts.map