import { type HealthIndicatorFunction } from './health-indicator'; /** * @publicApi */ export type HealthIndicatorStatus = 'up' | 'down'; /** * The result object of a health indicator * @publicApi */ export type HealthIndicatorResult = Record> = Record; /** * @internal */ export type InferHealthIndicatorResult = Awaited>; /** * @internal */ export type InferHealthIndicatorResults = Fns extends readonly [ infer Fn extends HealthIndicatorFunction, ...infer Rest extends readonly HealthIndicatorFunction[] ] ? InferHealthIndicatorResults & InferHealthIndicatorResult : HealthIndicatorResult;