import type ImageEditInfo from '../types/ImageEditInfo'; /** * @internal * State of an edit info object for image editing. * It is returned by checkEditInfoState() function */ export declare const enum ImageEditInfoState { /** * Invalid edit info. It means the given edit info object is either null, * or not all its member are of correct type */ Invalid = 0, /** * The edit info shows that it is only potentially edited by resizing action. * Image is not rotated or cropped, or event not changed at all. */ ResizeOnly = 1, /** * When compare with another edit info, this value can be returned when both current * edit info and the other one are not been rotated, and they have same cropping * percentages. So that they can share the same image src, only width and height * need to be adjusted. */ SameWithLast = 2, /** * When this value is returned, it means the image is edited by either cropping or * rotation, or both. Image source can't be reused, need to generate a new image src * data uri. */ FullyChanged = 3 } /** * @internal * Check the state of an edit info * @param editInfo The edit info to check * @param compareTo An optional edit info to compare to * @returns If the source edit info is not valid (wrong type, missing field, ...), returns Invalid. * If the source edit info doesn't contain any rotation or cropping, returns ResizeOnly * If the compare edit info exists, and both of them don't contain rotation, and the have same cropping values, * returns SameWithLast. Otherwise, returns FullyChanged */ export default function checkEditInfoState(editInfo: ImageEditInfo, compareTo?: ImageEditInfo): ImageEditInfoState;