/** GET JSON helper */ declare function getJSON(path: string, init?: RequestInit): Promise; /** POST JSON helper */ declare function postJSON(path: string, body: any, init?: RequestInit): Promise; /** Upload a file with form-data; extraFields merged into form */ declare function upload(path: string, file: File | Blob, extraFields?: Record): Promise; /** Download as blob; caller decides how to save */ declare function download(path: string, init?: RequestInit): Promise; export declare const http: { getJSON: typeof getJSON; postJSON: typeof postJSON; upload: typeof upload; download: typeof download; }; export {};