import 'event-target-polyfill'; import 'yet-another-abortcontroller-polyfill'; import { Observable } from 'rxjs'; export declare type ErrorResponse = { error: boolean; message: string; }; export declare function isErrorResponse(response: TData | ErrorResponse): response is ErrorResponse; /** * * @param input The resource you would like to fetch. Can be a url or a request object. * @returns Observable of JSON or ErrorResponse */ export declare function fromHttpRequest(input: string | Request): Observable;