import { RendererFactory2 } from '@angular/core'; import { DOC_ORIENTATION } from './DOC_ORIENTATION'; export declare class NgxImageCompressService { private render; DOC_ORIENTATION: typeof DOC_ORIENTATION; constructor(rendererFactory: RendererFactory2); byteCount(image: any): number; /** Get the correct Orientation value from the EXIF tags in the specified file. */ getOrientation(file: File): Promise; uploadFile(): Promise<{ image: string; orientation: DOC_ORIENTATION; }>; /** * Compresses the image to the specified ratio. * @param image A data URI containing the image data. * @param orientation The orientation, as returned by `NgxImageCompressService.getOrientation` * @param ratio The scaling ratio in % */ compressFile(image: string, orientation: DOC_ORIENTATION, ratio?: number, quality?: number): Promise; /** * Resizes the image to the specified maximum dimensions. * @param image A data URI containing the image data. * @param orientation The orientation, as returned by `NgxImageCompressService.getOrientation` */ resizeFile(image: string, orientation: DOC_ORIENTATION, maxWidth: number, maxHeight: number, quality?: number): Promise; }