export declare function isImageValid(src?: string): Promise; export declare function getClientSize(container?: HTMLElement | null): { width: number; height: number; }; /** * Resolve the image layout center in viewport coordinates, excluding the image transform. * * `offsetLeft`/`offsetTop` are relative to the offset parent, while pointer positions are * viewport based. The offset parent viewport position is added so both sides live in the same * coordinate space. Its own scale is returned as well, because an ancestor transition scales * the rendered size without changing the layout size. */ export declare function getImageLayoutCenter(img: HTMLImageElement): { centerX: number; centerY: number; scale: number; }; /** * Fix positon x,y point when * * Ele width && height < client * - Back origin * * - Ele width | height > clientWidth | clientHeight * - left | top > 0 -> Back 0 * - left | top + width | height < clientWidth | clientHeight -> Back left | top + width | height === clientWidth | clientHeight * * Regardless of other * * `left`/`top` are viewport coordinates, so they are converted into the container coordinate * space before comparing with the container size. Without that conversion the boundary check * uses the viewport origin even though the image is bounded by its container. */ export declare function getFixScaleEleTransPosition(width: number, height: number, left: number, top: number, container?: HTMLElement | null): null | { x?: number; y?: number; };