import { HttpClient } from '@angular/common/http'; import { OnDestroy } from '@angular/core'; import { Observable, Subscription } from 'rxjs'; import { PageBuilderGuiService } from './page-builder-gui.service'; import { DefaultResponse } from '../types/external-types/defaultResponse'; import { ExternalApiPBCaller, ExternalApiPBDriver } from '../types/pb-types/external-api-driver.interface'; import { CallApiInput, DefaultResponseApiCaller, FileParams } from '../types/pb-types/page-builder.type'; import * as i0 from "@angular/core"; export declare class ApiCallerService implements OnDestroy, ExternalApiPBCaller { private httpClient; protected pageBuilderGuiService: PageBuilderGuiService; externalApiPBDriver: ExternalApiPBDriver; constructor(httpClient: HttpClient, pageBuilderGuiService: PageBuilderGuiService); ngOnDestroy(): void; messageLoadingId: string | null; messageLoadingPool: { loadingMessageId: string; timeoutSub: Subscription; }[]; messageLoadingTimeout: number; callApi(input: CallApiInput): Observable; private callApiDownload; private callApiDownloadZip; private callApiView; private responseConfirmChecker; private defaultApiCall; private standardResponseFn; private standardErrorFn; /** * Modal Generico di conferma configurato dal BE * @param title * @param content * @param btnConfirmText * @param btnUndoText */ askConfirm(title?: string | undefined, content?: string | undefined, btnConfirmText?: string | undefined, btnUndoText?: string | undefined): Observable<{ confirmed: boolean; }>; private loadingMessage; private startLoading; private stopLoading; private stopLoadingById; getFileInfo(params: FileParams): Observable; deleteFile(params: FileParams): Observable; downloadFile(params: FileParams): Observable; uploadFile(params: FileParams, blob: File): Observable; setExternalDriver(externalDriver: ExternalApiPBDriver): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }