/** * Factory for {@link EmbeddingProvider} implementations (composition root helper). */ import type { EmbeddingConfig, EmbeddingProvider } from "../../domain/ports"; /** * Instantiate the embedding adapter matching {@link EmbeddingConfig.runtime}. * Defaults to `@huggingface/transformers` when `runtime` is omitted. * * `@xenova/transformers` is loaded only when {@link EmbeddingConfig.runtime} * is `"xenova"`. Loading both Xenova and Hugging Face stacks in one process * pulls two different native `sharp`/libvips builds and can crash on macOS * (duplicate Objective‑C classes, malloc errors after shutdown). */ export declare function createEmbeddingProvider(config: EmbeddingConfig): Promise;