export interface IImageInfo { data: string | Uint8Array; width: number; id?: string; height: number; } export interface IImageUtils { getImageInfo(url: string): Promise; applyImageFit(imageInfo: IImageInfo, imageFit: 'cover' | 'fill' | 'contain', targetWidth: number, targetHeight: number): Promise; clear(): void; } export declare class BaseImageUtils implements IImageUtils { private hash; private imageId; protected getImageId(): string; protected _getImageInfo(url: string): Promise; getImageInfo(url: string): Promise; applyImageFit(imageInfo: IImageInfo, imageFit: 'cover' | 'fill' | 'contain', targetWidth: number, targetHeight: number): Promise; protected get emptyImage(): IImageInfo; clear(): void; } export declare function getImageUtils(): IImageUtils; export declare function registerImageUtils(val: IImageUtils): void;