export type HealthComponentStatus = 'ok' | 'degraded' | 'unhealthy'; export interface HealthComponent { name: string; status: HealthComponentStatus; detail?: string; } export interface HealthReport { status: 'healthy' | 'degraded' | 'unhealthy'; version: string; uptimeMs: number; checks: HealthComponent[]; } export interface HealthDeps { tracer: { size: number; capacity: number; }; traceStoreProbe: () => Promise; memberCount: number; /** Optional provider probes — omitted entirely when none are configured. * Boolean = key-presence probe; object = live request probe with detail. */ providers?: Array<{ name: string; probe: () => Promise; }>; /** Optional observability-config probes; each omitted check is skipped */ sentry?: { dsn?: string; }; baselinesProbe?: () => Promise; retentionProbe?: () => Promise; } /** * Runs all component checks in parallel and derives the overall status: * any unhealthy check degrades the report to unhealthy, otherwise any * degraded check reports degraded. */ export declare function healthCheck(deps: HealthDeps): Promise; //# sourceMappingURL=healthCheck.d.ts.map