import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core'; import { DomSanitizer, SafeUrl } from '@angular/platform-browser'; import { FileInfo } from '../../uploader.interface'; import { FormControl } from '@angular/forms'; import { SelectInputOption } from '@vendasta/galaxy/input'; import { ImageDimensions } from '../../image-uploader.service'; import * as i0 from "@angular/core"; export declare class GalaxyImageEditorComponent implements AfterViewInit, OnDestroy { private sanitizer; class: string; /** Contains the image that we will edit */ set fileInfo(fileInfo: FileInfo); /** Optional: maximum dimensions allowed for the edited output image */ maxDimensions?: ImageDimensions; /** Optional: list of aspect ratios allowed to be selected. If only one, it will be selected and no dropdown shown */ aspectRatios?: SelectInputOption[]; /** Maximum height of the editor window */ maxEditorHeight?: string; /** Alignment of the editor save/cancel actions */ align?: 'start' | 'end'; /** The automatic cropping applied. Should be a number between 0 and 1 (for percentage) **/ autoCropArea: number | undefined; /** Minimum container height for the cropper container **/ minContainerHeight: number | undefined; /** Emits the resulting edited image */ closed: EventEmitter; imageEl: ElementRef; safeUrl: SafeUrl; aspectControl: FormControl; zoomStep: number; isDisabled: boolean; minZoom: number; maxZoom: number; zoomControl: FormControl; private cropper; private subscriptions; constructor(sanitizer: DomSanitizer); ngAfterViewInit(): void; ngOnDestroy(): void; /** * Close and consume the edited image. * * @param [save] - If true, will output the edited image */ onClose(save?: boolean): void; /** * React to aspect ratio constraint changes * @param aspect - The aspect ratio to set the cropper instance to use */ onAspectChange(aspect: number): void; /** Zooms in the cropper instance a single step */ zoomIn(): void; /** Zooms out the cropper instance a single step */ zoomOut(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; }