import { HttpClient, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; /** * Quickly call WebApis on the current App * * @export * @class Api */ export declare class Api { private http; private controller; constructor(http: HttpClient, controller: string); /** * Do a GET request a 2sxc api controller method */ get(method: string, params?: HttpParams): Observable; /** * Do a POST request to a 2sxc api controller method */ post(method: string, body: any, params?: HttpParams): Observable; }