import { Extension } from '@tiptap/core';
import { IpfsImageUploadResponse } from '../../types';

declare module '@tiptap/core' {
    interface Commands {
        uploadDocxFile: {
            /**
             * Import a DOCX file and insert its content into the editor.
             * Automatically handles embedded images via IPFS secure image upload.
             */
            uploadDocxFile: (ipfsImageUploadFn?: (file: File) => Promise<IpfsImageUploadResponse>, onError?: (error: string) => void, onDocxImport?: () => void) => any;
        };
    }
}
export declare const DocxFileHandler: Extension<any, any>;
