import { OnModuleDestroy } from '@nestjs/common'; /** * @description * 指定 Worker 的 HTTP 健康检查 endpoint 的配置。 * * @docsCategory worker */ export interface WorkerHealthCheckConfig { /** * @description * worker 将要监听的端口 */ port: number; /** * @description * 主机名 * * @default 'localhost' */ hostname?: string; /** * @description * 健康检查可用的路由 * * @default '/health' */ route?: string; } export declare class WorkerHealthService implements OnModuleDestroy { private server; initializeHealthCheckEndpoint(config: WorkerHealthCheckConfig): Promise; onModuleDestroy(): any; }