/**
 * Plugin Health Widget
 *
 * Displays health scores for plugins with attention needed list.
 * Pro+ only with health score calculation.
 *
 * @since v1.56.3
 */
import type { RegisteredWidget, WidgetDefinition } from '../widget-types.js';
/**
 * Health issue for a plugin
 */
export interface HealthIssue {
    pluginName: string;
    version: string;
    issue: string;
    severity: 'low' | 'medium' | 'high';
}
/**
 * Widget data interface
 */
export interface PluginHealthData {
    /** Overall health score 0-100 */
    overallScore: number;
    /** Health status label */
    status: 'excellent' | 'good' | 'fair' | 'poor';
    /** Number of healthy plugins */
    healthyCount: number;
    /** Total plugins */
    totalCount: number;
    /** Issues needing attention */
    issues: HealthIssue[];
    /** Last calculated */
    lastUpdated: number;
}
/**
 * Calculate health score factors
 *
 * Health Score = (
 *   (Age Factor × 0.2) +           // Days since last update
 *   (Stability Factor × 0.3) +     // No errors in recent operations
 *   (Compatibility Factor × 0.3) + // Matches server version
 *   (Source Factor × 0.2)          // Verified source, HTTPS
 * ) × 100
 */
export declare function calculateHealthScore(factors: {
    ageFactor: number;
    stabilityFactor: number;
    compatibilityFactor: number;
    sourceFactor: number;
}): number;
/**
 * Get status from score
 */
export declare function getHealthStatus(score: number): 'excellent' | 'good' | 'fair' | 'poor';
/**
 * Widget definition
 */
export declare const pluginHealthDefinition: WidgetDefinition;
/**
 * Registered widget export
 */
export declare const PluginHealthWidget: RegisteredWidget;
export default PluginHealthWidget;
//# sourceMappingURL=PluginHealthWidget.d.ts.map