import { OnInit, EventEmitter, AfterContentInit } from '@angular/core'; import { FormControl, ControlValueAccessor, FormControlDirective } from '@angular/forms'; import { FileItem } from 'ng2-file-upload'; export interface PuiUploadFile { name: string; type?: string; size?: any; lastModifiedDate?: any; headers?: [{ name: string; value: string; }]; } export interface PuiUploadResult { file: PuiUploadFile; success: boolean; response: string; } export declare const PUI_FILE_CONTROL_VALUE_ACCESSOR: any; export declare class PuiFileComponent implements OnInit, AfterContentInit, ControlValueAccessor { id: string; name: string; label: string; url: string; multiple: boolean; showProgress: boolean; showControlButtons: boolean; dropZoneClass: string; maxFileSize: number; control: FormControl; disabled: boolean; cancelButton: string; uploadButton: string; beforeUpload: EventEmitter<{ uploadFile: PuiUploadFile; formData: FormData; }>; complete: EventEmitter; error: EventEmitter; cancel: EventEmitter; controlName: FormControlDirective; controlDirective: FormControlDirective; private onTouchedCallback; private onChangeCallback; ngOnInit(): void; ngAfterContentInit(): void; writeValue(obj: any): void; registerOnChange(fn: any): void; registerOnTouched(fn: any): void; private convert(fileItem); getClasses(): { [x: string]: boolean; 'well': boolean; 'file-drop-zone': boolean; 'file-drop-over': boolean; }; fileOver(e: any): void; isExceeded(item: FileItem): boolean; onCancel(): void; onUpload(): void; }