import type { StyleManager } from './StyleManager'; import type { PageLayoutOptions } from './extensions/PageLayout'; export type ExportFormat = 'docx' | 'pdf' | 'html' | 'json' | 'markdown'; export interface ExportOptions { filename?: string; pageLayout?: Partial; } /** * High-fidelity DOCX exporter. Converts Tiptap JSON to a real Word document * with embedded images, hyperlinks, all character marks (color, highlight, * font, size, strike, sub/sup, track-changes) and proper section properties. * * Designed to produce documents that open without errors in Microsoft Word, * Google Docs, LibreOffice and Pages. */ export declare class ExportEngine { private _docHeadings; constructor(_styleManager?: StyleManager); exportToDocx(json: any, options?: ExportOptions): Promise; /** * Build the docx Blob without triggering a download. Useful for tests, * server-side rendering, or piping the document elsewhere. */ toBlob(json: any, options?: ExportOptions): Promise; private convertNodes; private convertNode; private convertParagraph; private convertHeading; private convertBlockquote; private convertTocPlaceholder; private convertCodeBlock; private convertImage; private convertList; private convertTaskList; private convertTable; private convertTableRow; private convertTableCell; private convertInlines; private collectFormat; private numberingConfig; }