import { Converters } from '../converters'; import * as unist from 'unist'; import * as mdast from 'mdast'; export interface ReVIEWCompilerOptions { documentInfo: { [key: string]: any; }; baseTemplate: string | null; templatesDir: string; imageConfigs: { [key: string]: any; }; } export interface ConvertOptionsNode { index: number; isFirst: boolean; isLast: boolean; } export default class ReVIEWCompiler { tree: unist.Node; file: any; static defaultOptions: ReVIEWCompilerOptions; static processor: any; footnotes: mdast.FootnoteDefinition[]; definitions: { [identifier: string]: mdast.Definition; }; images: { [identifier: string]: mdast.Image; }; converters: Converters; options: ReVIEWCompilerOptions; private templates; constructor(tree: unist.Node, file: any); parse(value: string): any; private readTemplate; compile(): string; visit(node: any, parent?: unist.Parent, idx?: number): string; convert(node: unist.Node): string; all(parent: unist.Parent): string[]; generateFootnotes(): string; }