import { EventEmitter, OnDestroy, OnInit, TemplateRef } from '@angular/core'; import { ControlValueAccessor } from '@angular/forms'; 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 { SelectFiles } from './select-files.utils'; import { SingleUploadViewComponent } from './single-upload-view.component'; import { SliceUploadService } from './slice-upload.service'; import * as i0 from "@angular/core"; export declare class SingleUploadComponent implements OnDestroy, OnInit, ControlValueAccessor { private i18n; private selectFiles; private doc; private toastService; private sliceUploadService; private devConfigService; dSingleUploadView: any; 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; beforeUpload: (file: any) => boolean | Promise | Observable; dynamicUploadOptionsFn: (files: any, uploadOptions: any) => IUploadOptions; enableDrop: boolean; disabled: boolean; successEvent: EventEmitter>; errorEvent: EventEmitter<{ file: File; response: any; }>; errorChunkEvent: EventEmitter<{ file: File; response: any; }>; deleteUploadedFileEvent: EventEmitter; fileDrop: EventEmitter; fileOver: EventEmitter; fileSelect: EventEmitter; showGlowStyle: boolean; get hasGlowStyle(): boolean; singleUploadViewComponent: SingleUploadViewComponent; UploadStatus: typeof UploadStatus; isDropOVer: boolean; i18nText: I18nInterface['upload']; i18nCommonText: I18nInterface['common']; i18nSubscription: Subscription; errorMsg: any[]; document: Document; private onChange; private onTouched; constructor(i18n: I18nService, selectFiles: SelectFiles, doc: any, toastService: ToastService, sliceUploadService: SliceUploadService, devConfigService: DevConfigService); writeValue(files: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; simulateSelectFiles(files: any): Promise; ngOnInit(): void; _dealFiles(observale: any): void; checkValid(): void; onClick($event: any): void; get filename(): string; onFileDrop(files: any): void; onFileOver(event: any): void; onFileSelect(file: any): void; upload(): void; canUpload(): Promise; _onDeleteUploadedFile(filePath: string): void; deleteFile($event: any): void; alertMsg(errorMsg: any): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }