import * as React from "react"; /** * `ImageComp` is a React functional component designed to render an image with resizable capabilities. * It accepts several props including `HTMLAttributes`, `editor`, `node`, and `getPos` to handle image styling, resizing, and integration with a text editor. * * The component supports the following features: * - Rendering an image with optional styling attributes such as `src`, `style`, `alt`, and `title`. * - Resizing the image using drag handles placed at various corners and edges. * - Updating the image size in the editor's state when resizing is complete. * * @param {Object} props - The properties passed to the component. * @param {Object} props.HTMLAttributes - Attributes for the HTML img tag. * @param {Object} props.editor - The text editor instance used for updating image styles. * @param {Object} props.node - The image node within the editor's document. * @param {Function} props.getPos - A function to get the position of the image node in the editor's document. * @returns {JSX.Element} The rendered image component with resizing capabilities. */ declare const ImageComp: React.FC; export default ImageComp;