import { EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core'; import { I18nInterface, I18nService } from 'ng-devui/i18n'; import { ToastService } from 'ng-devui/toast'; import { DevConfigService } from 'ng-devui/utils'; import { Observable, Subscription } from 'rxjs'; import { IFileOptions, IUploadOptions, UploadStatus } from './file-uploader.types'; import { MultipleUploadViewComponent } from './multiple-upload-view.component'; import { SelectFiles } from './select-files.utils'; import { SliceUploadService } from './slice-upload.service'; import * as i0 from "@angular/core"; export declare class MultipleUploadComponent implements OnDestroy, OnInit { private selectFiles; private i18n; private doc; private sliceUploadService; private devConfigService; private toastService; uploadOptions: IUploadOptions; fileOptions: IFileOptions; autoUpload: boolean; withoutBtn: boolean; showTip: boolean; uploadedFiles: Array; uploadedFilesRef: TemplateRef; preloadFilesRef?: TemplateRef; filePath: string; placeholderText: string; uploadText: string; /** * @deprecated */ confirmText: string; oneTimeUpload: boolean; disabled: boolean; beforeUpload: (files: any) => boolean | Promise | Observable; setCustomUploadOptions: (file: any, uploadOptions: any, chunkedFileIndex?: any) => IUploadOptions; enableDrop: boolean; showGlowStyle: boolean; get hasGlowStyle(): boolean; successEvent: EventEmitter>; errorEvent: EventEmitter>; errorChunkEvent: EventEmitter<{ file: File; response: any; }>; deleteUploadedFileEvent: EventEmitter; fileDrop: EventEmitter; fileOver: EventEmitter; fileSelect: EventEmitter; multipleUploadViewComponent: MultipleUploadViewComponent; i18nCommonText: I18nInterface['common']; i18nText: I18nInterface['upload']; isDropOVer: boolean; i18nSubscription: Subscription; errorMsg: any[]; UploadStatus: typeof UploadStatus; uploadTips: string; document: Document; private onChange; private onTouched; constructor(selectFiles: SelectFiles, i18n: I18nService, doc: any, sliceUploadService: SliceUploadService, devConfigService: DevConfigService, toastService: ToastService); ngOnInit(): void; writeValue(files: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; simulateSelectFiles(files: any): Promise; _dealFiles(observale: any): void; checkValid(): void; onClick(event: any): void; onFileDrop(files: any): void; onFileOver(event: any): void; onFileSelect(files: any): void; handleOneTimeUpload(uploadObservable: any): void; handleUpload(uploadObservable: any): void; upload(event?: any, fileUploader?: any): void; canUpload(): Promise; _onDeleteUploadedFile(filePath: string): void; deleteFile($event: any, file: any): void; alertMsg(errorMsg: any): void; getStatus(): "failed" | "uploading" | "uploaded" | "selected"; cancelUpload(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }