export declare type ImageOutputMimeType = 'image/jpeg' | 'image/png' | 'image/webp'; export interface ImageResizeOptions { /**Output format. Defaults to the supported source format, then PNG.*/ mimeType?: ImageOutputMimeType; /**Encoder quality from 0 to 1. Browsers ignore it for formats such as PNG.*/ quality?: number; } /**Downsizes an image to fit maxSize while preserving its ratio. Never enlarges it.*/ export declare function resizeByMaxSize(file: File, maxSize: number, options?: ImageResizeOptions): Promise; /**Resizes an image to an exact square and crops overflow from the center. May enlarge it.*/ export declare function resizeToCuttedSquare(file: File, sideSize: number, options?: ImageResizeOptions): Promise; /**Resizes an image to an exact rectangle and crops overflow from the center. May enlarge it.*/ export declare function resizeToCuttedRect(file: File, width: number, height: number, options?: ImageResizeOptions): Promise;