infinity-forge
Version:
15 lines (14 loc) • 544 B
TypeScript
import { FileSystemType } from '../../../../../../../ui/index.js';
import { DisplayCropArea } from '../shared/types.js';
interface UseCropOperationsProps {
file: FileSystemType | null;
cropArea: DisplayCropArea;
onApplyCrop?: (croppedFile: FileSystemType) => void;
onCancel: () => void;
onError: (error: string) => void;
}
export declare function useCropOperations({ file, cropArea, onApplyCrop, onCancel, onError }: UseCropOperationsProps): {
isLoading: boolean;
handleApplyCrop: () => Promise<void>;
};
export {};