/** * [[include:src/codecs/latex/README.md]] * * @module codecs/latex */ import schema from '@stencila/schema'; import * as vfile from '../../util/vfile'; import { Codec, CommonDecodeOptions, CommonEncodeOptions } from '../types'; export declare class LatexCodec extends Codec implements Codec { readonly mediaTypes: string[]; readonly extNames: string[]; readonly decode: (file: vfile.VFile, options?: CommonDecodeOptions & { defaultLanguage?: string; }) => Promise; readonly encode: (node: schema.Node, options?: CommonEncodeOptions) => Promise; } /** * Decode LaTeX commands to those that Pandoc recognizes. * * Pandoc knows about a lot of commands (see https://github.com/jgm/pandoc/blob/master/src/Text/Pandoc/Readers/LaTeX/Inline.hs) * but not all of them. This converts less common commands to "equivalents" that * Pandoc knows about. */ export declare function convertCommands(latex: string, defaultLanguage?: string): string;