/** * [[include:src/codecs/docx/README.md]] * * @module codecs/docx */ import stencila from '@stencila/schema'; import * as vfile from '../../util/vfile'; import { EncodeSettings, DecodeSettings } from '../pandoc'; import { Codec, CommonDecodeOptions, CommonEncodeOptions } from '../types'; export declare class DocxCodec extends Codec implements Codec { readonly mediaTypes: string[]; readonly decode: (file: vfile.VFile, options?: CommonDecodeOptions, settings?: DecodeSettings) => Promise; /** * Encode a Stencila `Node` to a Microsoft Word `docx` format. * * If the node is not an `Article`, it will be wrapped into one. */ readonly encode: (node: stencila.Node, options?: CommonEncodeOptions, settings?: EncodeSettings) => Promise; /** * @override Overrides {@link Codec.preWrite} so that media files * do NOT get written to a sibling folder (since they are embedded * in the DOCX file). */ preWrite(node: stencila.Node): Promise; }