import { ErrorHandler } from "@angular/core"; import { HttpClient, HttpParams } from "@angular/common/http"; import { InjectionToken } from "@angular/core"; import { PageableResponse } from "cadlearning.dto"; import * as i0 from "@angular/core"; export declare let CLIENT_CONFIG: InjectionToken; export declare class BaseClient { private clientService; private http; constructor(clientService: IClientService, http: HttpClient); GetFile(url: string, fileType: string, progressEvent?: (percentComplete: number) => void): Promise; protected GetPageable(url: string, params: HttpParams, willHandleError?: boolean, withCredentials?: boolean): Promise>; protected GetData(url: string, params: HttpParams, data?: any | null, willHandleError?: boolean, withCredentials?: boolean): Promise; ListData(url: string, params: HttpParams, data?: any | null, willHandleError?: boolean, withCredentials?: boolean): Promise; ListDataRaw(url: string, params: HttpParams, willHandleError?: boolean, withCredentials?: boolean): Promise>; protected PutMany(url: string, data: any, params: HttpParams, willHandleError?: boolean, withCredentials?: boolean, progress?: (progress: number) => void): Promise; protected PutOne(url: string, data: any, params: HttpParams, willHandleError?: boolean, withCredentials?: boolean, progress?: (progress: number) => void): Promise; protected PostMany(url: string, data: any, params: HttpParams, willHandleError?: boolean, withCredentials?: boolean, progress?: (progress: number) => void): Promise; protected PostPageable(url: string, data: any, params: HttpParams, willHandleError?: boolean, withCredentials?: boolean): Promise>; protected PostOne(url: string, data: any, params: HttpParams, willHandleError?: boolean, withCredentials?: boolean, progress?: (progress: number) => void): Promise; protected static FormFromData(data: any): FormData; protected DeleteAny(url: string, params: HttpParams, willHandleError?: boolean): Promise; /** * Creates a new `HttpParams` with the correct codec */ protected newParams(): HttpParams; private parseResponse; private dateReviver; private processError; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export interface IProblemDetails { detail: string | null; instance: string | null; status: number; title: string; type: string | null; url?: string | null; } export interface IClientService { ServiceUrl: string; ClientId: string; ErrorService: ErrorHandler; } export interface IBaseResponse { Result?: T; TotalCount?: number; } //# sourceMappingURL=base.d.ts.map