//#region src/health/index.d.ts export interface HealthCheckResult { status: 'healthy' | 'unhealthy'; latency?: number | undefined; error?: string | undefined; } export interface HealthCheckDefinition { /** * Unique name for this health check. */ name: string; /** * Performs the check. Throw or return an unhealthy result to fail; * returning void or completing without error means healthy. */ check: () => Promise | HealthCheckResult | void; /** * Optional checks don't affect the ready probe. * @default false */ optional?: boolean | undefined; /** * Maximum time in ms for the check to complete. * @default 5000 */ timeout?: number | undefined; } /** * Register a health check against the adapter's health server. * * No-op when no health runtime is active (dev mode, `health: false`), so boot * files can call it unconditionally. Returns an unregister function; checks * still registered after `onShutdown` are removed automatically. */ export declare function registerHealthCheck(definition: HealthCheckDefinition): () => void; //#endregion //# sourceMappingURL=health.d.ts.map