export interface RepoClassification { /** Repo with highest similarity to the query embedding, or null if no centroids loaded */ topRepo: string | null; /** Similarity score per repo */ scores: Map; /** * Confidence = similarity(top-1) - similarity(top-2). * High confidence (>0.05) means the query clearly belongs to one repo. */ confidence: number; } /** * Loads per-repo embedding centroids from the DB (averaged over all card * embeddings that belong to each repo). Cached in memory; call * `invalidateRepoCentroidsCache()` after re-indexing. */ export declare function getRepoCentroids(): Map; export declare function invalidateRepoCentroidsCache(): void; /** * Classifies a query embedding against per-repo centroids. * Use the result to apply repo-affinity boosts in scoring. */ export declare function classifyQueryEmbedding(queryEmbedding: Float32Array): RepoClassification; //# sourceMappingURL=query-classifier.d.ts.map