import type { Mastra } from '@mastra/core/mastra'; import type { Response } from 'express'; import type { MastraModuleOptions } from '../mastra.module.js'; import { ShutdownService } from '../services/shutdown.service.js'; /** * System controller for health checks and diagnostics. * * Routes are at the root level (not under the Mastra prefix) for compatibility * with Kubernetes, Docker, and container orchestration systems that typically * expect /health at root level. * * These routes are public (@Public) and skip rate limiting (@SkipThrottle). */ export declare class SystemController { private readonly mastra; private readonly options; private readonly shutdownService; constructor(mastra: Mastra, options: MastraModuleOptions, shutdownService: ShutdownService); /** * Health check endpoint. * Returns 200 if healthy, 503 if shutting down. */ health(res: Response): { status: 'ok' | 'shutting_down'; timestamp: string; }; /** * Readiness check endpoint. * Returns 200 if ready to accept traffic, 503 if not. */ ready(res: Response): { ready: boolean; activeRequests: number; timestamp: string; }; /** * Version and info endpoint. */ info(): { version: string; prefix: string; timestamp: string; }; } //# sourceMappingURL=system.controller.d.ts.map