import { OutputInfo } from 'sharp'; declare const IMAGE_FORMAT: { readonly PNG: "png"; readonly JPG: "jpg"; }; export interface ClipImageOptions { /** * 开始位置 */ startPoint: { x: number; y: number; }; /** * 开始位置 */ endPoint: { x: number; y: number; }; /** * 图片链接,本地文件路径or线上cdn链接 */ filePath: string; /** * 本地保存文件夹路径 */ outputDirPath?: string; /** * 本地保存文件名称,不要有后缀名 * @default 输入文件名称 */ outputFileName?: string; /** * 格式,png/jpg * @default 'png' */ extension?: (typeof IMAGE_FORMAT)[keyof typeof IMAGE_FORMAT]; } /** * 修改图片大小 */ export default function clipImage({ startPoint, endPoint, filePath, outputDirPath, outputFileName, extension, }: ClipImageOptions): Promise; export {};