interface IUseLazyLoadProps { enabled?: boolean; imageUrl?: string; } /** * 攬加載背景圖片 * * 背景圖片會造成二次加載,因為透過 new Image 加載一次, * 成功後再給予 style background image 再次加載 * 這部分只能透過瀏覽器的緩存來避免第二次 * @param isLazy * @param imageUrl */ declare const useLazyLoadBackground: ({ enabled, imageUrl, }: IUseLazyLoadProps) => { imageRef: import("react").RefObject; isPending: boolean; isFetching: boolean; }; export default useLazyLoadBackground;