import { type EmbeddingEntry, type EmbeddingIndex } from "./types.js";
export declare function cosineSimilarity(a: number[], b: number[]): number;
export type SimilarityResult = {
    id: string;
    score: number;
};
export declare class EmbeddingManager {
    private entries;
    private model;
    setModel(model: string): void;
    getModel(): string;
    setEntries(entries: EmbeddingEntry[]): void;
    addEntry(id: string, vector: number[]): void;
    removeEntry(id: string): void;
    findSimilar(queryVector: number[], topK: number, minThreshold?: number): SimilarityResult[];
    toIndex(): EmbeddingIndex;
    static fromIndex(index: EmbeddingIndex): EmbeddingManager;
}
