import { HttpClient, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; import { DescriptorForm } from '../descriptor/descriptor-form'; import * as i0 from "@angular/core"; export declare class FormDataWithContentType { form: FormData; contentType: string; } export declare class VedraxApiService { private httpClient; private options; constructor(httpClient: HttpClient); /** * Helper method for invoking a HTTP GET * @param path the endpoint * @param params the query params */ get(path: string, params?: HttpParams): Observable; /** * Method for calling multiple request at once by passing a map of key/endpoint * @param paths */ getMultipleSource(descriptorForm: DescriptorForm, apiCalls?: Map): Observable; /** * Method for calling multiple request at once by passing a list of descriptorEndpoint * @param paths */ callEndpoints(endpoints?: string[]): Observable; /** * Helper method for calling either a HTTP POST or a HTTP PUT * @param descriptor the form descriptor * @param body the body of the request */ callEndpoint(descriptor: DescriptorForm, body?: object): Observable; /** * Helper method for calling an HTTP PUT endpoint * @param path the endpoint * @param body the body of the request */ put(path: string, body?: object, multipart?: boolean): Observable; /** * Helper method for calling an HTTP POST endpoint * @param path the endpoint * @param body the body of the request */ post(path: string, body?: object, multipart?: boolean): Observable; /** * Helper method for converting body to FormData. * Used for passing MultiPart file along with attributes * @param body */ private toFormData; private isFile; private setHeader; toHttpParams(obj?: any): HttpParams; queryMapToHttpParams(params: Map): HttpParams; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }