import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core'; import { GalaxyImageUploaderService, ImageDimensions } from '../../image-uploader.service'; import { FileInfo, FileUploadError } from '../../uploader.interface'; import { GalaxyUploaderComponent } from '../uploader/uploader.component'; import * as i0 from "@angular/core"; export declare class GalaxyImageUploaderComponent implements OnInit, OnChanges, OnDestroy { private uploadService; class: string; /** * Comma separated file types to accept * See MDN on File Type Specifiers https://mzl.la/3gytrGi */ accept: string; /** Whether or not to upload files when they are added to the list */ autoUpload: boolean; /** * Max number of files allowed to upload * 0 means no limit */ maxFiles?: number; /** If provided, will not allow images larger than the dimensions provided to be added to the queue */ maxDimensions?: ImageDimensions; /** If provided, will be used as the hint instead of the file constraints text */ hintText?: string; /** If provided, will override the button text. First item is singular, second is plural */ buttonText?: [string, string]; /** If provided, will override the desription text. First item is singular, second is plural */ descriptionText?: [string, string]; /** URL to upload files to */ uploadUrl: string; /** * Number of parallel uploads to allow * 0 means no limit */ numParallel?: number; /** Base set of files that the service should manage */ files: FileInfo[]; /** * Emits events related to the status of uploads and file selection */ fileUploadErrored: EventEmitter; /** * Emits info for files uploaded successfully */ fileUploaded: EventEmitter; /** * Emits the list of files and their status when changes occur */ filesChanged: EventEmitter; uploadComp: GalaxyUploaderComponent; currentFile: FileInfo; private subsciptions; constructor(uploadService: GalaxyImageUploaderService); ngOnInit(): void; ngOnChanges(changes: SimpleChanges): void; ngOnDestroy(): void; /** * Trigger all images in the queue to be uploaded */ uploadQueuedFiles(): void; deleteFile(file: FileInfo): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }