/** * Mode-Aware Method Decorators * * Conditional method execution based on application mode: * - HTTP: Only HTTP server (no workers/schedulers) * - WORKER: Only background workers and schedulers (no HTTP server) * - HYBRID: Both HTTP server and workers (default) */ /** * Method only executes in HTTP mode (skipped in WORKER and HYBRID) * * @example * ```typescript * @RunOnlyInHttp() * async handleApiRequest() { * // Only runs when APP_MODE=http * } * ``` */ export declare function RunOnlyInHttp(): MethodDecorator; /** * Method only executes in WORKER mode (skipped in HTTP and HYBRID) * * @example * ```typescript * @RunOnlyInWorker() * async processBackgroundJob() { * // Only runs when APP_MODE=worker * } * ``` */ export declare function RunOnlyInWorker(): MethodDecorator; /** * Method executes in HTTP or HYBRID mode (skipped in WORKER-only mode) * * @example * ```typescript * @RunInHttpOrHybrid() * async handleWebRequest() { * // Runs in HTTP or HYBRID mode * } * ``` */ export declare function RunInHttpOrHybrid(): MethodDecorator; /** * Method executes in WORKER or HYBRID mode (skipped in HTTP-only mode) * * @example * ```typescript * @RunInWorkerOrHybrid() * async processScheduledTask() { * // Runs in WORKER or HYBRID mode * } * ``` */ export declare function RunInWorkerOrHybrid(): MethodDecorator;