export interface DocxImportResult {
    html: string;
    warnings: string[];
    images: Map<string, {
        contentType: string;
        arrayBuffer: ArrayBuffer;
    }>;
}
/**
 * Convert a .docx File to clean HTML via mammoth.js.
 *
 * Images embedded in the .docx are extracted and returned separately
 * so they can be re-uploaded by the host application.
 */
export declare function convertDocxToHtml(file: File, onImage?: (imageKey: string, contentType: string, buffer: ArrayBuffer) => Promise<string>): Promise<DocxImportResult>;
/**
 * Import a .docx file and insert its content into the editor.
 *
 * @param file - The .docx file
 * @param editor - TipTap editor instance
 * @param uploadImage - Optional callback to upload extracted images
 */
export declare function importDocxFile(file: File, editor: {
    chain: () => {
        focus: () => {
            insertContent: (html: string) => {
                run: () => void;
            };
        };
    };
}, uploadImage?: (imageKey: string, contentType: string, buffer: ArrayBuffer) => Promise<string>): Promise<string[]>;
