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

declare module '@tiptap/core' {
    interface Commands {
        exportOdtFile: {
            exportOdtFile: (props?: {
                title?: string;
            }) => any;
        };
    }
}
/**
 * Preprocess TipTap HTML for odf-kit compatibility:
 * - Convert task lists to standard lists with checkbox text prefixes
 * - Replace <img> tags with warning text (odf-kit v1 skips images)
 * - Convert callouts (<aside>) to blockquotes
 * - Convert Twitter embeds to links
 * - Convert iframes (YouTube, SoundCloud, etc.) to links
 * - Strip TipTap-specific data attributes
 * - Convert void elements to self-closing XHTML for the XML parser
 */
export declare function preprocessHtml(html: string): {
    html: string;
};
declare const OdtExportExtension: (ipfsImageFetchFn?: (_data: IpfsImageFetchPayload) => Promise<{
    url: string;
    file: File;
}>, fetchV1ImageFn?: (url: string) => Promise<ArrayBuffer | undefined>) => Extension<any, any>;
export default OdtExportExtension;
