import { apiRequest } from './api.js'

export function fetchBackendHealth(options = {}) {
  return apiRequest('/health', {
    timeoutMs: Number(options.timeoutMs || 2500),
    timeoutMessage: '后端健康检查超时，可能正在处理耗时任务。'
  })
}
