import { EventEmitter, NgZone } from '@angular/core'; import { NavController, Platform } from 'ionic-angular'; import { FileTransfer } from '@ionic-native/file-transfer'; import { File } from '@ionic-native/file'; import { ExtLocalNotifications } from '../../native/local-notifications'; export interface DownloadOptions { fileName?: string; filePath?: string; url: string; } export interface DownloadEvent { fileName: string; filePath: string; progress: number; } export declare class DownloadManagerController { private platform; private transfer; private file; private localNotifications; private ngZone; private _event; private id; private _fileSystemRoot; private _rootDirectory; readonly event: EventEmitter; readonly downloadDirectory: string; constructor(platform: Platform, transfer: FileTransfer, file: File, localNotifications: ExtLocalNotifications, ngZone: NgZone); show(navCtrl: NavController): void; download(option: DownloadOptions): Promise; private createId(); private createNotification(fileName); private updateLocalNotification(fileName, id, progress); }