export declare function handleResponse(response: Response | undefined, type?: 'json' | 'blob'): Promise;