import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http'; import { MatSnackBar } from '@angular/material/snack-bar'; import { Observable } from 'rxjs'; import { ScDialogService } from '../components/sc-dialogs'; export interface StatusMessage { level: number; code: string; message: string; data: any; inner: StatusMessage; statusMessage: Partial; } export interface ResponseStatus { data: T; statusMessage: Partial; statusNumber: number; nextTaskDetails: T; error: StatusMessage; } export interface ResponseError { status: number; message: string; data: any; } export interface RequestOptions { hideSnackbar?: boolean; body?: any; headers?: HttpHeaders | { [header: string]: string | string[]; }; observe?: 'body'; params?: HttpParams | { [param: string]: string | string[]; }; responseType?: 'json'; reportProgress?: boolean; withCredentials?: boolean; } export declare class RestService { private _httpClient; private _matSnackbar; private _dialogService; constructor(_httpClient: HttpClient, _matSnackbar: MatSnackBar, _dialogService: ScDialogService); get(url: string, options?: {}): Observable; put(url: string, body: any | null, options?: RequestOptions): Observable; delete(url: string, options?: {}): Observable; post(url: string, body: any | null, options?: RequestOptions): Observable; private _request; private _success; private _error; } //# sourceMappingURL=rest-service.service.d.ts.map