UNPKG

590 BTypeScriptView Raw
1import { ProsemirrorPlugin } from '@remirror/pm';
2import { PlainExtension } from '../../extension';
3interface DecorationsOptions {
4}
5/**
6 * `UploadExtension` handle the file upload process.
7 */
8export declare class UploadExtension extends PlainExtension<DecorationsOptions> {
9 get name(): "upload";
10 /**
11 * Create the extension plugin for inserting decorations into the editor.
12 */
13 createExternalPlugins(): ProsemirrorPlugin[];
14}
15declare global {
16 namespace Remirror {
17 interface AllExtensions {
18 upload: UploadExtension;
19 }
20 }
21}
22export {};