import type { NewsroomRef } from '@prezly/sdk'; import type { ImageNode } from '@prezly/slate-types'; import type { SlateEditor } from '@udecode/plate-common'; import React from 'react'; import type { RenderElementProps } from 'slate-react'; interface Props extends RenderElementProps { element: ImageNode; onCrop: (editor: SlateEditor, original: ImageNode) => void; onCropped: (editor: SlateEditor, updated: ImageNode) => void; onReplace: (editor: SlateEditor, element: ImageNode) => void; onReplaced: (editor: SlateEditor, element: ImageNode) => void; onRemoved: (editor: SlateEditor, element: ImageNode) => void; withAlignmentOptions: boolean; withCaptions: boolean; withLayoutOptions: boolean; withMediaGalleryTab: false | { enabled: boolean; newsroom: NewsroomRef; }; withNewTabOption: boolean; withSizeOptions: boolean; } export declare function ImageElement({ attributes, children, element, onCrop, onCropped, onRemoved, onReplace, onReplaced, withAlignmentOptions, withCaptions, withLayoutOptions, withMediaGalleryTab, withNewTabOption, withSizeOptions, }: Props): React.JSX.Element; export {};