import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { Observable } from 'rxjs'; import * as i0 from "@angular/core"; export declare type RequestMethod = 'delete' | 'get' | 'post' | 'put'; export interface RequestOptions { headers?: HttpHeaders | { [header: string]: string | string[]; }; observe?: string; params?: HttpParams | { [param: string]: string | string[]; }; reportProgress?: boolean; responseType?: string; withCredentials?: boolean; } export interface RestParameters { limit?: number; select?: string; skip?: number; sort?: string; where?: any; } export declare class ApiService { private http; constructor(http: HttpClient); /** * Sends a request to the API, returning the data as a basic object. * @param method The HTTP method to use. Ex: 'get', 'post', 'put', 'delete'. * @param path The relative path from the object's base endpoint. Ex: '/count', '/recent'. * @param params The parameters to pass to the endpoint. Ex: { where: { name: 'John Doe' }, limit: 10, sort: 'name' }. */ request(method: RequestMethod, url: string, params?: any, options?: RequestOptions): Observable | Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }