import { HttpClient } from '@angular/common/http'; import { Observable } from 'rxjs'; import { IcsToastService } from '@varmasagi/ics-toast'; import { DriveRepresentation } from './dtos/DriveRepresentation'; /** * Service providing methods to carry out Ics Drive Operations. * To be included in the providers array in Application Modules, * and injected into the component constructor. */ export declare class IcsDriveService { private toastService; private http; fileDest: Observable<{}>; imageDesc: Array; driveRepresentation: DriveRepresentation; respStatus: number; constructor(toastService: IcsToastService, http: HttpClient); /** * Used to upload file(s) to Ics Drive. * @param files - Accepts a Set of type File */ upload(files: Set): any[]; /** * Returns details about a file including its URL * @param args - Id of the file whos details are to be fetched. */ getFileList(args: any): Observable<{}>; /** * Used to delete a file from Ics Drive * @param args - Id of the file to delete */ delete(args: any): Observable<{}>; /** * Used to get the directory structure of a folder, returns * subfolders and files within the folder * @param args - Id of the folder whos contents are needed. */ getDirectoryList(args: any): Observable<{}>; /** * Used to connect to Ics Drive. If no account exists for the user, * it will be created. */ getDrive(): Observable; /** * Returns a list of files with their URLs * @param args - Accepts a string, either comma seperated ids, * or "recent". */ getFilesLists(args: any): Observable<{}>; getSampleData(): Observable; /** * Used to upload the image of a file. Internal implementation, * not intended to be used manually */ sharingFileUpload(args: any): Observable; /** * Internal implementation, not intended to be used manually. */ getHtmlUrl(data: any): Observable; }