export interface GrammarSpec { /** Language id used by parser-tree-sitter.LANG_MAP. */ lang: string; /** WASM filename to write into ~/.sverklo/grammars/. */ wasm: string; /** Direct URL — pinned to a known-good version. */ url: string; } export declare const GRAMMARS: GrammarSpec[]; export declare function grammarsDir(): string; export interface InstallResult { lang: string; path: string; /** "fresh" = downloaded, "cached" = already present, "skipped" = filtered out. */ status: "fresh" | "cached" | "skipped" | "error"; bytes?: number; error?: string; } /** * Install (or re-verify) the requested grammar set. When `langs` is * empty, installs everything in GRAMMARS. Existing files are left * alone unless `force` is set. */ export declare function installGrammars(opts: { langs?: string[]; force?: boolean; onProgress?: (msg: string) => void; }): Promise;