/** * Maintenance Activity Checker * * Evaluates how actively a plugin is being maintained based on update frequency. * * @since v1.66.0 */ import { type HealthCheckConfig, type HealthComponent } from './health-types.js'; /** * Maintenance status categories */ export type MaintenanceStatus = 'active' | 'maintained' | 'slow' | 'infrequent' | 'stale' | 'abandoned' | 'unknown'; /** * Maintenance check result */ export interface MaintenanceCheckResult { /** Last update timestamp (ms) */ lastUpdateAt: number | null; /** Days since last update */ daysSinceUpdate: number | null; /** Maintenance status category */ status: MaintenanceStatus; /** Score (0-100) */ score: number; /** Human-readable description */ description: string; } /** * Calculate days since a timestamp */ export declare function daysSince(timestamp: number): number; /** * Determine maintenance status from days since update */ export declare function getMaintenanceStatus(daysSinceUpdate: number | null): MaintenanceStatus; /** * Calculate maintenance score based on days since update */ export declare function calculateMaintenanceScore(lastUpdateAt: number | null, config?: HealthCheckConfig['maintenanceScoring']): number; /** * Get maintenance status description */ export declare function getMaintenanceDescription(lastUpdateAt: number | null, status: MaintenanceStatus): string; /** * Check maintenance activity and return health component */ export declare function checkMaintenanceActivity(lastUpdateAt: number | null, config?: HealthCheckConfig['maintenanceScoring']): HealthComponent; /** * Full maintenance check result */ export declare function checkMaintenance(lastUpdateAt: number | null, config?: HealthCheckConfig['maintenanceScoring']): MaintenanceCheckResult; /** * Determine if a plugin should be flagged for abandonment risk */ export declare function isAbandonmentRisk(lastUpdateAt: number | null): boolean; /** * Get friendly time since update string */ export declare function getTimeSinceUpdate(lastUpdateAt: number | null): string; //# sourceMappingURL=maintenance-checker.d.ts.map