/// import "./styles/index.scss"; import type { BlockContext, CopyContext, EditorKit, PasteContext } from "doc-editor-core"; import type { CommandFn } from "doc-editor-core"; import { BlockPlugin } from "doc-editor-core"; import type { RenderElementProps } from "doc-editor-delta"; export declare class ImagePlugin extends BlockPlugin { private editor; private readonly; private uploadHandler; key: string; private IMAGE_INPUT_DOM_ID; constructor(editor: EditorKit, readonly: boolean, uploadHandler?: (file: File) => Promise<{ src: string; width: number; height: number; }>); destroy(): void; match(props: RenderElementProps): boolean; private uploadImage; onCommand: CommandFn; serialize(context: CopyContext): void; deserialize(context: PasteContext): void; render(context: BlockContext): JSX.Element; }