import { Plugin, PluginKey, EditorState } from 'prosemirror-state'; import { DecorationSet } from 'prosemirror-view'; export declare const imageUploadKey: PluginKey; export interface ImagePluginOptions { /** Called with image files pasted or dropped into the editor. */ onImageFiles?: (files: File[], pos: number | null) => void; } /** * Image behaviors: routes pasted/dropped image files to the host's upload * flow and tracks "uploading…" widget decorations that survive concurrent * edits by mapping through transactions. */ export declare function imagePlugin(options?: ImagePluginOptions): Plugin; /** Position of an upload placeholder, after mapping through edits. */ export declare function findUploadPos(state: EditorState, id: string): number | null;