/**
 * Upgrade Algorithm
 *
 * Finds better alternatives to installed plugins.
 * Suggests upgrades when better maintained, more popular,
 * or more feature-rich alternatives exist.
 *
 * @since v1.66.0
 */
import type { RegistryPlugin } from '../../registry/registry-types.js';
import type { AlgorithmResult, Recommendation, RecommendationContext } from '../recommendation-types.js';
/**
 * Known plugin upgrade paths
 *
 * Maps outdated/deprecated plugins to recommended alternatives
 */
export declare const UPGRADE_PATHS: Map<string, {
    replacement: string;
    reason: string;
}[]>;
/**
 * Quality indicators for comparing plugins
 */
interface QualityMetrics {
    downloadScore: number;
    ratingScore: number;
    recencyScore: number;
    overallScore: number;
}
/**
 * Calculate quality metrics for a plugin
 */
export declare function calculateQualityMetrics(plugin: RegistryPlugin): QualityMetrics;
/**
 * Find upgrade recommendations
 */
export declare function findUpgrades(context: RecommendationContext, maxResults?: number): Recommendation[];
/**
 * Run the upgrade algorithm
 */
export declare function runUpgradeAlgorithm(context: RecommendationContext, maxResults?: number): AlgorithmResult;
export {};
//# sourceMappingURL=upgrade.d.ts.map