import type { Embedder } from './store.js'; /** * Same model the semantic router uses, so the weights are normally already on * disk (`monomind download-embeddings`). 384-dim, ~22M parameters. */ export declare const EMBEDDING_MODEL = "Snowflake/snowflake-arctic-embed-xs"; /** Whether the model's files are already on disk under transformers.js' cache directory. */ export declare function isModelCached(cacheDir: string | undefined): boolean; /** * Builds an {@link Embedder} on `@huggingface/transformers`. The caller supplies * the module loader (`() => import('@huggingface/transformers')`) so the * dependency resolves from the host package; monograph itself does not depend * on it. Returns null when the module or the model is unavailable, and * `MONOGRAPH_EMBED=0` turns the semantic index off. The model is never * downloaded implicitly (~88 MB): without it on disk this returns null — * `monomind download-embeddings` fetches it, or set `MONOGRAPH_ALLOW_DOWNLOAD=1`. */ export declare function createTransformersEmbedder(load: () => Promise): Promise; //# sourceMappingURL=transformers-embedder.d.ts.map