import { Editor, Range } from '@tiptap/core'; import { IpfsImageUploadResponse } from '../types'; type InsertCommand = (editor: Editor, range?: Range) => void; export type UploadImageOptions = { onError?: (errorString: string) => void; ipfsImageUploadFn?: (file: File) => Promise; }; /** * File-picker image upload — mirrors the toolbar flow * (editor-utils.tsx "Upload Image") and the slash "Image" item. */ export declare const uploadImageCommand: (editor: Editor, { onError, ipfsImageUploadFn }?: UploadImageOptions) => void; /** * Insert commands shared by the slash menu and `useEditorCommands`. * Bodies are moved verbatim from `slash-command-utils.tsx`; the optional * `range` only differs when invoked from the slash menu. */ export declare const insertCommands: Record; export {};