export interface HttpResponse { ok: boolean; status: number; json(): Promise; text?: () => Promise; } export interface HttpClientRequest { method?: string; headers?: Record; body?: string; } export type HttpClient = (url: string, init?: HttpClientRequest) => Promise;