import { Observable } from 'rxjs'; import { HttpClient } from '@angular/common/http'; import { EProceso } from 'ng-pli-util'; import { AngularFireStorage } from '@angular/fire/compat/storage'; import { AngularFireAuth } from '@angular/fire/compat/auth'; import * as i0 from "@angular/core"; export declare class FileService { private environment; private afAuth; private angularFireStorage; private httpClient; constructor(environment: any, afAuth: AngularFireAuth, angularFireStorage: AngularFireStorage, httpClient: HttpClient); /** * It uploads file to google cloud storage * @param filePath path will be uploaded the file * @param file */ upload(filePath: any, file: any): Observable; uploadWithPercentage(filePath: any, file: any): Object; download(path: string): Promise; /** * It deletes a file depending on url download * @param urlDownload */ delete(urlDownload: string): void; /** * It returns the path according to the params * @param process * @param patCodigo * @param progCodigo * @param promCodigo * @param applicationId * @param filename */ getPath(process: EProceso, patCodigo: number, progCodigo: number, promCodigo: number, applicationId: string, filename: string, username?: string): string; /** * It returns the survey document path according to the params * @param surveyId * @param filename * @param username */ getSurveyDocumentPath(surveyId: string, filename: string, username?: string): string; /** * It returns file of type blob that get from url * @param url * @returns blob observable */ getFromUrl(url: string): Observable; /** * It returns file of type blob that get from url * @param url * @returns blob observable */ getMetadataFromPath(path: string): Observable; /** * It returns file of type blob that get from url * @param url * @returns blob observable */ getDownloadURLFromPath(path: string): Observable; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; }