import type { Ref } from 'vue'; /** * useOperationImg 返回值类型接口 * * 用于 image-preview 组件的方法封装 * * @param { Object } scale 放大倍数 * @param { Object } rotate 旋转角度 * @param { Function } smaller 放大操作 * @param { Function } bigger 缩小操作 * @param { Function } scrollZoom 滚轮缩放 * @param { Function } recovery 还原图片 * @param { Function } rotateClockwise 顺时针旋转 * @param { Function } rotateCounterClock 逆时针旋转 */ export interface UseOperationImgReturn { scale: Ref; rotate: Ref; smaller: () => void; bigger: () => void; scrollZoom(evt: WheelEvent): void; recovery: () => void; rotateClockwise: () => void; rotateCounterClock: () => void; } /** * 用于 image-preview 组件的图片操作 hook * * 主要用作图片的放大、缩小、滚轮缩放 * * @author Tyh2001 * @returns { Object } */ export declare const useOperationImg: () => UseOperationImgReturn;