/// import * as PIXI from "pixi.js"; /** * This hook expose all the functions available for the pixi editor: * - all the effects (crop, resize, rotate, blur) * - historize every action * - backup functions * * @param args.spriteName The spriteName of the original image * @param args.imageSrc The URL of the image to edit * @returns all the action available for the image editor */ export default function useImageEditor({ imageSrc, spriteName, }: { imageSrc: string; spriteName?: string; }): { historyCount: number; setApplication: import("react").Dispatch | undefined>>; restore: () => Promise; stopCrop: (save: boolean) => void; stopBlur: () => void; stopResize: (save: boolean) => void; startResize: () => Promise; startCrop: () => Promise; startBlur: () => Promise; rotate: () => Promise; toBlob: () => Promise; toDataURL: () => string | undefined; loading: boolean; };