///
import * as sharp from 'sharp';
/**
* Holds a physical image that can be processed by GLTFExporter.
*
* It uses Sharp for reprocessing, crushes PNGs with PngQuant and converts
* PNGs to JPEGs when no alpha channel is found.
*/
export declare class NodeImage {
private static readonly jpegQuality;
readonly src: string;
width: number;
height: number;
private readonly format;
private readonly stats;
private readonly sharp;
constructor(src: string, width: number, height: number, format: string, stats: sharp.Stats, shrp: sharp.Sharp);
resize(width: number, height: number): this;
flipY(): this;
getFormat(): string;
getMimeType(): string;
getImage(optimize: boolean, quality?: number): Promise;
hasTransparency(): boolean;
containsTransparency(): boolean;
}