import { IEditorPluginConstructor } from "../../../types/kernel.js"; import "../../../types/index.js"; import { BlockImageNode } from "../node/block-image-node.js"; import { ImageNode } from "../node/image-node.js"; interface ImagePluginOptions { defaultBlockImage?: boolean; getImageWidth?: (file: File) => Promise; handleRehost?: (url: string) => Promise<{ url: string; }>; handleUpload?: (file: File) => Promise<{ url: string; }>; needRehost?: (url: string) => boolean; renderImage?: (node: ImageNode | BlockImageNode) => unknown; theme?: { blockImage?: string; image?: string; }; } declare const ImagePlugin: IEditorPluginConstructor; export { ImagePlugin, ImagePluginOptions };