interface GracefulShutdownOptions { maxWaitSeconds?: number; checkIntervalMs?: number; } /** * Creates a Spiceflow middleware that tracks in-flight requests and prevents * the process from exiting while requests are being processed. * * @param options - Configuration options * @param options.maxWaitSeconds - Maximum time to wait for requests to complete (default: 300) * @param options.checkIntervalMs - Interval to check if requests are complete (default: 250) * @returns Spiceflow app that can be mounted with .use() */ export declare function preventProcessExitIfBusy(options?: GracefulShutdownOptions): any; export {}; //# sourceMappingURL=prevent-process-exit-if-busy.d.ts.map