import { NodeType } from '@remirror/pm/model'; import { EditorView } from '@remirror/pm/view'; import { FileUploader } from './file-uploader'; import { UploadContext } from './upload-context'; /** * Any `ProsemirrorNode` can use the `uploadFile` function in this file as long * as its attributes implement this interface. */ interface AbstractNodeAttributes { id?: any; error?: string | null; } export type UploadFileHandler = () => FileUploader; export interface UploadPlaceholderPayload { context: UploadContext; fileUploader: FileUploader; } export interface UploadFileProps { file: File; pos: number | undefined; view: EditorView; fileType: NodeType; uploadHandler: UploadFileHandler; } /** * Insert a file into the editor and upload it. */ export declare function uploadFile({ file, pos, view, fileType, uploadHandler, }: UploadFileProps): void; export {};