/** * @file health.probes.ts * @description Factory functions that create HealthProbe instances from known infrastructure. */ import type { HealthProbe } from './health.types'; import type { HealthCheckResult } from '../remote-mcp/resilience/health-check'; /** * Pingable interface — any object exposing a `ping()` method. * Matches BaseStorageAdapter, SessionStore, etc. */ export interface Pingable { ping(): Promise; } /** * Creates a probe that calls `adapter.ping()` with timing. * Works with any object exposing a `ping(): Promise` method. */ export declare function createStorageProbe(name: string, adapter: Pingable): HealthProbe; /** * Provider of health check results for a remote app. * Matches `McpClientService.getHealthStatus()`. */ export interface HealthResultProvider { getHealthStatus(appId: string): HealthCheckResult | undefined; } /** * Creates a probe that reads the last health check result from the * existing HealthCheckManager. No redundant network call — reuses * the periodic background health check data. */ export declare function createRemoteAppProbe(appId: string, provider: HealthResultProvider): HealthProbe; /** * Provider of session store ping. * Matches the public API added to TransportService. */ export interface SessionStorePingProvider { pingSessionStore(): Promise; } /** * Creates a probe that pings the transport session store. */ export declare function createTransportSessionProbe(provider: SessionStorePingProvider): HealthProbe; //# sourceMappingURL=health.probes.d.ts.map