UNPKG

prosemirror-docx-web

Version:

Export from a prosemirror document to Microsoft word forked from curvenote/prosemirror-docx

11 lines (10 loc) 673 B
import { Document, INumberingOptions, ISectionOptions } from 'docx'; import { Node as ProsemirrorNode } from 'prosemirror-model'; export declare function createShortId(): string; export declare function createDocFromState(state: { numbering: INumberingOptions['config']; children: ISectionOptions['children']; }, footerText?: string, footnotes?: Record<number, any>, pageOptions?: any, getImageBuffer?: any, externalStyles?: any): Document; export declare function writeDocx(doc: Document, write: (buffer: Blob) => void): void; export declare function getLatexFromNode(node: ProsemirrorNode): string; export declare function coverColorToHex(color: string): string;