/** * Aggregate health check: staleness + inference + optional drift. * Used by `limps health check` to produce a single summary. */ import type { ServerConfig } from '../config.js'; import { getStalenessReport } from './health-staleness.js'; export interface HealthCheckResult { staleness: ReturnType; inference: { plansChecked: number; suggestionsCount: number; suggestionsByPlan: { planId: string; count: number; }[]; }; drift?: { plansChecked: number; driftCount: number; driftsByPlan: { planId: string; count: number; }[]; }; summary: { staleCount: number; inferenceSuggestions: number; driftCount: number; }; } /** * Optional hook called after a health check completes. * Used for future integrations (e.g. Slack/Discord notifications). */ export type HealthCheckHook = (result: HealthCheckResult) => void; /** * Run staleness, inference, and optionally drift for the given scope. * Calls onComplete hook if provided (e.g. for notifications). */ export declare function runHealthCheck(config: ServerConfig, options?: { planId?: string; codebasePath?: string; onComplete?: HealthCheckHook; }): HealthCheckResult; /** * Human-readable summary line for health check result. */ export declare function renderHealthCheckSummary(result: HealthCheckResult): string; //# sourceMappingURL=health-check.d.ts.map