import type { HealthCheckResult } from "#interface/gracefulServerOptions"; import type { IStatus } from "#interface/status"; import type http from "node:http"; type HealthCheckCallback = (() => Promise) | undefined; export type OnRequestOptions = { serverStatus: IStatus; livenessEndpoint: string; readinessEndpoint: string; livenessCheck?: HealthCheckCallback; readinessCheck?: HealthCheckCallback; }; declare const onRequest: (options: OnRequestOptions) => (req: http.IncomingMessage, res: http.ServerResponse) => Promise; export default onRequest;