/**
 * @license
 * Copyright 2025 Vybestack LLC
 * SPDX-License-Identifier: Apache-2.0
 */
/**
 * Exit code used to signal that the child process wants a relaunch.
 * The parent process should check for this code and respawn if needed.
 */
export declare const RELAUNCH_EXIT_CODE = 75;
/**
 * Check if debug mode is enabled via environment variables.
 * This is a lightweight check that doesn't require loading any configuration.
 */
export declare function isDebugMode(): boolean;
/**
 * Determine if the process should be relaunched with higher memory limits.
 * This check is performed BEFORE loading any configuration to avoid
 * wasting time on initialization that would be discarded during relaunch.
 *
 * @param debugMode - Whether to log debug information
 * @returns Array of Node.js arguments for relaunch, or empty array if no relaunch needed
 */
export declare function shouldRelaunchForMemory(debugMode: boolean): string[];
