import type { FastifyPluginCallback } from 'fastify'; import type { HealthChecker } from './healthcheckCommons.js'; export interface PublicHealthcheckPluginOptions { responsePayload?: Record; url?: string; logLevel?: 'fatal' | 'error' | 'warn' | 'info' | 'debug' | 'trace' | 'silent'; healthChecks: readonly HealthCheck[]; infoProviders?: readonly InfoProvider[]; } export type InfoProvider = { name: string; dataResolver: () => Record; }; export type HealthCheck = { name: string; isMandatory: boolean; checker: HealthChecker; }; /** * @deprecated use commonSyncHealthcheckPlugin instead */ export declare const publicHealthcheckPlugin: FastifyPluginCallback;