import { BaseCheck } from '@adonisjs/core/health'; import type { HealthCheckResult } from '@adonisjs/core/types/health'; import type { Connection } from '../types.ts'; /** * The RedisCheck pings the redis server to ensure we are * able to connect to it. * * @example * ```ts * const check = new RedisCheck(redis.connection()) * const result = await check.run() * * if (result.isHealthy) { * console.log('Redis is healthy') * } * ``` */ export declare class RedisCheck extends BaseCheck { #private; /** * Health check public name */ name: string; /** * Create a new RedisCheck instance * * @param connection - The Redis connection to monitor * * @example * ```ts * const check = new RedisCheck(redis.connection('main')) * ``` */ constructor(connection: Connection); /** * Executes the health check * * @example * ```ts * const result = await check.run() * console.log(result.status) // 'ok' or 'error' * ``` */ run(): Promise; }