declare global {
  namespace NodeJS {
    interface ProcessEnv {
      NODE_ENV?: 'development' | 'production' | 'test';

      // Automation (legacy + current)
      AUTOMATION_MODE?: 'dev' | 'production' | 'mock';
      AUTOMATION_TIMEOUT?: string;
      RETRY_ATTEMPTS?: string;
      SCREENSHOT_ON_ERROR?: string;

      // Chrome / DevTools
      CHROME_DEBUG_PORT?: string;
      CHROME_WS_ENDPOINT?: string;

      // Native automation tuning
      NUTJS_MOUSE_SPEED?: string;
      NUTJS_KEYBOARD_DELAY?: string;
      IRACING_WINDOW_TITLE?: string;
      TEMPLATE_PATH?: string;
      OCR_CONFIDENCE?: string;

      // Retry tuning
      AUTOMATION_MAX_RETRIES?: string;
      AUTOMATION_BASE_DELAY_MS?: string;
      AUTOMATION_MAX_DELAY_MS?: string;
      AUTOMATION_BACKOFF_MULTIPLIER?: string;

      // Timing tuning
      AUTOMATION_PAGE_LOAD_WAIT_MS?: string;
      AUTOMATION_INTER_ACTION_DELAY_MS?: string;
      AUTOMATION_POST_CLICK_DELAY_MS?: string;
      AUTOMATION_PRE_STEP_DELAY_MS?: string;

      // Logging
      LOG_LEVEL?: 'debug' | 'info' | 'warn' | 'error' | 'fatal';
      LOG_FILE_PATH?: string;
      LOG_MAX_FILES?: string;
      LOG_MAX_SIZE?: string;
    }
  }
}

export {};