// Client helpers for the backend's version + network endpoints (both public). import { apiFetch } from "@/lib/api-client"; export type VersionInfo = { current: string; latest: string | null; updateAvailable: boolean; releaseUrl: string | null; }; export type NetworkInfo = { port: number; addresses: string[]; urls: string[]; }; export function getVersionInfo(): Promise { return apiFetch("/api/version"); } export function getNetworkInfo(): Promise { return apiFetch("/api/network"); }