import type { ImageEditorValue } from "@webiny/admin-ui"; import type { FileItem } from "../../domain/types.js"; interface UseEditImageOptions { /** Called with the updated file after a successful save (e.g. to refresh the UI). */ onSaved?: (file: FileItem) => void; } export declare function useEditImage(file: FileItem, options?: UseEditImageOptions): { open: boolean; openEditor: () => void; closeEditor: () => void; value: ImageEditorValue | undefined; save: (edit: ImageEditorValue) => Promise; }; export {};