export interface Embedder { embed(text: string): Promise; } /** * Load the pinned embedding model. In Node, `cacheDir` controls where the * public ONNX weights are cached (the MCP server passes ~/.virlow-mcp/models); * in the browser, transformers.js uses the Cache API automatically. * * `localModelPath` self-hosts the model instead of fetching it from the * Hugging Face Hub — the web app's production CSP doesn't allow * huggingface.co, and self-hosting is better privacy anyway. Set it to the * public URL prefix (e.g. `/models/`) that serves the files fetched by * `scripts/fetch-embedding-model.mjs`; transformers.js then resolves * `/...` instead of hitting the Hub. */ export declare function createEmbedder(opts?: { cacheDir?: string; localModelPath?: string; }): Promise;