import { a as Schema, i as Querier } from "./index-DrgOX0Fu.js";
import { HealthCheck } from "@platform-modules/util/health";
//#region src/health.d.ts
interface DbHealthOptions {
  /** Name surfaced in the `HealthResult` (default `'db'`). */
  name?: string;
}
/**
 * A `SELECT 1` round-trip probe over any query-capable handle.
 *
 * Returns a `HealthCheck` whose `check()` NEVER throws — a failed query becomes
 * `status:'down'` with a GENERIC `detail`. The raw driver error is deliberately
 * swallowed: it can carry a DSN, credentials, or host topology and must never
 * reach an admin screen or log (info-disclosure hard floor).
 */
declare function healthCheck<S extends Schema = Record<string, never>>(db: Querier<S>, opts?: DbHealthOptions): HealthCheck;
//#endregion
export { DbHealthOptions, healthCheck };