/** * Recommendation Scorer * * Handles final scoring, boosting, and ranking of recommendations. * * @since v1.66.0 */ import type { RegistryPlugin } from '../registry/registry-types.js'; import type { Recommendation, RecommendationConfig } from './recommendation-types.js'; /** * Calculate boost multiplier for a plugin based on its qualities */ export declare function calculateBoost(plugin: RegistryPlugin, boosts: RecommendationConfig['boosts']): number; /** * Apply algorithm weight to a recommendation score */ export declare function applyAlgorithmWeight(score: number, algorithmType: string, weights: RecommendationConfig['weights']): number; /** * Score and rank recommendations from multiple algorithms */ export declare function scoreAndRank(recommendations: Recommendation[], config: RecommendationConfig): Recommendation[]; /** * Merge recommendations with diversity * * Ensures variety in recommendation types rather than * all recommendations being from one algorithm. */ export declare function mergeWithDiversity(recommendations: Recommendation[], config: RecommendationConfig, diversityFactor?: number): Recommendation[]; /** * Generate context hash for cache invalidation */ export declare function generateContextHash(installedIds: string[], preferences: { preferredCategories: string[]; excludedCategories: string[]; }): string; //# sourceMappingURL=scorer.d.ts.map