export type FetchImpl = typeof fetch; export interface FetchJsonOptions { method?: string; headers?: Record; body?: string; signal?: AbortSignal; fetchImpl?: FetchImpl; } export declare class HttpStatusError extends Error { readonly status: number; readonly statusText: string; readonly url: string; constructor(status: number, statusText: string, url: string); } export declare class JsonParseError extends Error { readonly url: string; readonly cause: unknown; constructor(url: string, cause: unknown); } export declare function fetchJson(url: string, options?: FetchJsonOptions): Promise;