import { HttpParams } from '@angular/common/http'; import { SingHttpErrorResponse } from '../models/sing-http-response'; import { SingHttpMethods } from '../enums/sing-http-methods.enum'; import { SingHttpMetaData } from '../models/sing-http-meta-data.interface'; import { SingHttpOptions } from '../models/sing-http-request'; /** * get error message. * in case response contains errors, we will show them. otherwise 'Server error' will display * @param response */ export declare function getErrorMessage(response: SingHttpErrorResponse): string; /** * create http params by get params object * in order to pass params in the new HttpClient we need to use the HttpParams * which helps us create the HttpParams object * @param params a simple shallow object with key value * @param allowEmptyQueryParams include empty or nullish query params * @returns {HttpParams} a new instance with the given params */ export declare function createHttpParams(params: any, allowEmptyQueryParams?: boolean): HttpParams; /** * check if given method is GET method */ export declare function isGetMethod(method: SingHttpMethods): boolean; /** * create options object */ export declare function createOptions(httpMetaData: SingHttpMetaData): SingHttpOptions; //# sourceMappingURL=sing-http-call.utils.d.ts.map