export declare type ErrorResponse = { message?: string; error_code: string; }; export declare function handleError(res: Response): Promise; export declare function handleJSON(res: Response): Promise;