export declare const MAX_WIDTH = 1920;
export declare const MAX_HEIGHT = 1080;
/**
 * to solve the img display
 * @param {string} src img url
 * @param {HTMLImageElement} el img element
 * @param {boolean} isError if load error happen
 * @param {Function} onLoad do something when img load successly
 * @param {Function} setIsLoaded setState hook function
 * @returns {void}
 */
export default function compress(src: string, el: HTMLImageElement, isError?: boolean, onLoad?: () => void, setIsLoaded?: (isLoaded: boolean) => void): void;
