UNPKG

docx

Version:

Easily generate .docx files with JS/TS with a nice declarative API. Works for Node and on the Browser.

10 lines (9 loc) 369 B
import { Element } from 'xml-js'; export declare class TokenNotFoundError extends Error { constructor(token: string); } export declare const findRunElementIndexWithToken: (paragraphElement: Element, token: string) => number; export declare const splitRunElement: (runElement: Element, token: string) => { readonly left: Element; readonly right: Element; };