/** * [[include:src/codecs/nw/README.md]] * * @module codecs/nw */ import schema from '@stencila/schema'; import * as vfile from '../../util/vfile'; import { Codec, CommonDecodeOptions, CommonEncodeOptions } from '../types'; export declare class NwCodec extends Codec implements Codec { readonly mediaTypes: string[]; readonly extNames: string[]; readonly decode: (file: vfile.VFile, options?: CommonDecodeOptions) => Promise; readonly encode: (node: schema.Node, options?: CommonEncodeOptions) => Promise; } /** * Decode a Noweb code chunk to a LaTeX `lstlisting` environment. * * Use https://regex101.com/r/MByuPq/1 for testing out the regex */ export declare function decodeCodeChunk(nw: string, defaultLanguage?: string): string;