UNPKG

docx

Version:

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

16 lines (15 loc) 654 B
import { XmlComponent } from '../../../../xml-components'; export declare const HeaderFooterReferenceType: { readonly DEFAULT: "default"; readonly FIRST: "first"; readonly EVEN: "even"; }; export type IHeaderFooterOptions = { readonly type?: (typeof HeaderFooterReferenceType)[keyof typeof HeaderFooterReferenceType]; readonly id?: number; }; export declare const HeaderFooterType: { readonly HEADER: "w:headerReference"; readonly FOOTER: "w:footerReference"; }; export declare const createHeaderFooterReference: (type: (typeof HeaderFooterType)[keyof typeof HeaderFooterType], options: IHeaderFooterOptions) => XmlComponent;