/** * Isolation wrapper around @huggingface/transformers for local vector embeddings. * Dynamic import — never loaded if the package is not installed. */ export declare class Embedder { /** Check if @huggingface/transformers is importable (caches result) */ static isAvailable(): Promise; /** Embed text into a Float32Array(768) or null if unavailable */ static embed(text: string): Promise; /** Embed a search query (adds "search_query: " prefix for nomic-embed) */ static embedQuery(text: string): Promise; /** Serialize Float32Array to Buffer (3072 bytes for 768 dims) */ static toBuffer(embedding: Float32Array): Buffer; /** Deserialize Buffer back to Float32Array */ static fromBuffer(buf: Buffer): Float32Array; /** Cosine similarity between two vectors. Returns [-1, 1]. */ static cosineSimilarity(a: Float32Array, b: Float32Array): number; /** Reset cached state (for tests) */ static _reset(): void; } //# sourceMappingURL=embedder.d.ts.map