/** * Tauri adapter for loading tree-sitter grammar WASM files. * * Uses `window.__TAURI_INTERNALS__.convertFileSrc` (Tauri v2) to convert a * local asset path into a fetch-able asset:// URL, then loads via fetch. * * Grammar WASM files must be included in the Tauri bundle under the path * specified by `grammarDir` (default: "/assets/grammars" relative to the * Tauri resource directory). */ export interface TauriLoaderOptions { /** * Absolute path to the directory containing grammar WASM files inside * the Tauri resource bundle. * Defaults to "/assets/grammars". */ grammarDir?: string; } /** * Load grammar WASM bytes in a Tauri webview context. * * @param grammarName - e.g. "tree-sitter-typescript" * @param opts - Tauri-specific options */ export declare function loadGrammarBytes(grammarName: string, opts?: TauriLoaderOptions): Promise; //# sourceMappingURL=tauri.d.ts.map