/** * Application Mode Detection and Management System * * This module provides utilities for detecting and managing different application modes: * - HTTP: Only HTTP server (no workers/schedulers) * - WORKER: Only background workers and schedulers (no HTTP server) * - HYBRID: Both HTTP server and workers (default) */ export declare enum ApplicationMode { HTTP = "http", WORKER = "worker", HYBRID = "hybrid" } /** * Get the current application mode from environment variables * Supports both APP_MODE and MODE environment variables * * @returns The current application mode */ export declare function getApplicationMode(): ApplicationMode; /** * Check if the current mode should process queues and scheduled tasks * * @returns True if workers should be registered */ export declare function shouldProcessQueues(): boolean; /** * Check if the current mode should start HTTP server * * @returns True if HTTP server should be started */ export declare function shouldStartHttpServer(): boolean; /** * Check if running in HTTP-only mode * * @returns True if running in HTTP-only mode */ export declare function isHttpMode(): boolean; /** * Check if running in Worker-only mode * * @returns True if running in Worker-only mode */ export declare function isWorkerMode(): boolean; /** * Check if running in Hybrid mode * * @returns True if running in Hybrid mode */ export declare function isHybridMode(): boolean; /** * Get a human-readable description of the current mode * * @returns Description of the current mode */ export declare function getModeDescription(): string;