import { ElementRef, EventEmitter, TemplateRef } from '@angular/core'; import { DomSanitizer, SafeResourceUrl } from '@angular/platform-browser'; import { MEDIA_TYPE_CONST, OperationResult, MediaItem, NgSnotifyService } from 'ngx-sdcore/common'; import { ImageCroppedEvent, ImageTransform } from 'ngx-image-cropper'; import { BsModalService, BsModalRef } from 'ngx-bootstrap/modal'; import * as i0 from "@angular/core"; export declare class NgxMediaUploadComponent { private snotify; private modalService; protected sanitizer: DomSanitizer; protected types: Map; protected mediaItem: MediaItem; protected acceptedExtensions: string; protected previewSrcSafe: SafeResourceUrl; protected previewType: string; protected id: string; protected tooltips: any[]; protected mediaType: typeof MEDIA_TYPE_CONST; protected imagePlusUrl: string; protected imageErrorUrl: string; protected imagePreviewUrl: string; protected imageCopyUrl: string; protected imageDeleteUrl: string; protected imageCropUrl: string; protected cropEditImage: string; protected cropFlipHorizontalImage: string; protected cropFlipVerticalImage: string; protected cropResetChangesImage: string; protected cropRotateLeftImage: string; protected cropRotateRightImage: string; protected cropZoomInImage: string; protected cropZoomOutImage: string; protected cropRotateImage: string; protected cropRatioImage: string; protected selectionCropImage: string; protected cropImage: MediaItem; protected canvasRotation: number; protected transform: ImageTransform; protected rotation: number; protected scale: number; protected containWithinAspectRatio: boolean; protected fileName: string; protected maintainAspectRatio: boolean; protected aspectRatio: number; protected isRoundCropper: boolean; protected textToCompare: boolean; protected modal: BsModalRef | undefined; protected cropModal: BsModalRef | undefined; protected modalMediaVideo: ElementRef | undefined; src: string; accept: string; maxSize: number; height: number; file: File; copy: boolean; crop: boolean; remove: boolean; preview: boolean; disabled: boolean; confirmRemove: boolean; protected fileChange: EventEmitter; protected result: EventEmitter; constructor(snotify: NgSnotifyService, modalService: BsModalService, sanitizer: DomSanitizer); ngOnInit(): void; reset(): void; protected initialMediaItem(): Promise; protected checkMediaType(src: string | undefined): string; protected onRemoveMediaClicked(): void; protected removeMedia(): void; protected onSelectFile(event: any): void; protected calculateAcceptedExtensions(): void; protected openModal(template: TemplateRef): void; protected copySrc(): void; protected openCropModal(template: TemplateRef): void; protected imageCropped(event: ImageCroppedEvent): void; protected rotateLeft(): void; protected rotateRight(): void; private flipAfterRotate; protected flipHorizontal(): void; protected flipVertical(): void; protected resetImage(): void; protected zoomOut(): void; protected zoomIn(): void; protected toggleContainWithinAspectRatio(): void; protected updateRotation(): void; protected updateRatio(): void; protected updateCropper(): void; protected saveImage(): Promise; protected urltoFile(url: string, fileName: string, mimeType: string): Promise; protected urlToFile(url: string): Promise; protected getMineType(extension: string): string; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }