import type { HttpClient, RequestOptions } from "../http.js"; import type { HealthResponse } from "../types.js"; /** * Is it up, and is it ready. * * Two endpoints because they answer different questions and a load balancer * needs both: `live` says the process is running, `ready` says it can serve. * Answering `ready` from a liveness probe restarts a healthy process that was * merely waiting on a dependency. * * Neither is under `/api/v1`, and neither needs the key - but the key is sent * anyway, because a client that builds a second, credential-free request path * has a second path that can be wrong. */ export declare class Health { #private; constructor(http: HttpClient); live(options?: RequestOptions): Promise; ready(options?: RequestOptions): Promise; }