import { type HealthIndicatorResult } from './health-indicator-result.interface'; /** * Helper service which can be used to create health indicator results * @publicApi */ export declare class HealthIndicatorService { check(key: Key): HealthIndicatorSession; } /** * Show a compilation error if `status` is used in the additional data. */ type WithoutStatus = { [K in keyof T]: K extends 'status' ? never : T[K]; }; type AdditionalData = Record; /** * Indicate the health of a health indicator with the given key * * @publicApi */ export declare class HealthIndicatorSession = string> { private readonly key; constructor(key: Key); /** * Mark the health indicator as `down` * @param data additional data which will get appended to the result object * @remarks The `status` key is reserved and cannot be used in additional data. */ down(data?: T & WithoutStatus): HealthIndicatorResult; down(data?: T): HealthIndicatorResult; /** * Mark the health indicator as `up` * @param data additional data which will get appended to the result object * @remarks The `status` key is reserved and cannot be used in additional data. */ up(data?: T & WithoutStatus): HealthIndicatorResult; up(data?: T): HealthIndicatorResult; } export {};