import { Response } from 'express'; import { Connection } from 'mongoose'; /** * Controller providing a Kubernetes liveness probe endpoint to verify * the health of the MongoDB connection. Kubernetes uses this endpoint * to determine if the application is alive and able to communicate with the database. */ export declare class DatabaseLivenessProbeController { private readonly connection; /** * Receives an injected Mongoose connection instance for database health checks. * * @param connection - The active Mongoose database connection */ constructor(connection: Connection); /** * GET /alive * * Endpoint for Kubernetes liveness probe to determine MongoDB connection health. * If the database is connected and responsive to a ping, a 200 response is returned. * Otherwise, the application returns a 500 error to indicate failure. * * @param res {Response} - Express response object used to return HTTP status * @returns {Promise} - Sends status response directly via Express */ getLivenessStatus(response: Response): Promise; }