import { FileTransfer, FileUploadOptions, FileUploadResult } from '../types/cordova-plugin-file'; export interface UploadOptions { fileURL: string; server: string; success?: Function; fail?: Function; progress?: Function; trustAllHosts?: boolean; } declare let FileTransfer: { new (): FileTransfer; }; declare let FileUploadOptions: { new (): FileUploadOptions; }; declare class FileUpload { fileTransferInstance: FileTransfer; fileUploadOptions: FileUploadOptions; constructor(options?: FileUploadOptions); upload(options: UploadOptions): Promise; abort(): void; } export default FileUpload;