import { HttpClient, HttpEvent, HttpEventType } from '@angular/common/http'; import { Observable } from 'rxjs'; import { ApiUrlProviderService } from './api-url-provider.service'; import { GenericService } from '../generic.service'; import * as i0 from "@angular/core"; export declare class StorageService { private http; private apiUrlProviderService; private genericService; constructor(http: HttpClient, apiUrlProviderService: ApiUrlProviderService, genericService: GenericService); private currentlyDownloading; GetProgress(file: string): number; StartDownload(file: string, params?: any, post?: boolean, fileName?: string | null): Download; private HandleDownload; static SanitizeFileName(v: string): string; static SanitizeName(original: string): string; GetFile(fileUrl: string, params?: any, post?: boolean): Observable>; /** * @param lstFiles * lista de arquivos a serem baixados * @param onUpdate * funcao chamada a cada progresso de download * @returns * lista de respostas dos arquivos, como promise, quando todos estiverem completos ou deram erro, é retornada */ GetBlobBatchLiveResponse(lstFiles: string[], onUpdate: (totalProgress: number, lstResponse?: LiveResponse[], eventType?: HttpEventType) => void): Promise; GetBlobLiveResponse(file: string, onUpdate?: (progress: number, response?: LiveResponse, eventType?: HttpEventType) => void): Promise; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } export interface GetFileResponse { path: string; blob?: Blob; } export interface LiveResponse { path: string; observable: Observable>; progress: number; blob?: Blob; success?: boolean; } export declare class Download { file: string; requestProgess: Observable; progress: number; constructor(file: string); }