import { apiFetch } from "../lib/api"; type HealthData = Record; type HealthCheck = { name: string; status: string; data?: HealthData; }; export type BackendHealthResponse = { status: string; checks?: HealthCheck[]; }; export async function getBackendStatus() { return apiFetch("/status", { method: "GET", }); }