import { Node } from '../node'; import { VisitorsMap } from './visitor'; /** * Construct a new compiler. * * @example * var compiler = new Compiler(new File('> foo.')); * * @constructor * @class {Compiler} * @param {File} file - Virtual file. * @param {Object?} [options] - Passed to * `Compiler#setOptions()`. */ declare function compilerFactory(visitors: VisitorsMap): (tree: { type: "thematicBreak" | "html" | "yaml" | "table" | "tableCell" | "tableRow" | "paragraph" | "text" | "code" | "list" | "listItem" | "definition" | "footnoteDefinition" | "heading" | "blockquote" | "link" | "image" | "footnote" | "strong" | "emphasis" | "delete" | "inlineCode" | "break" | "root" | "markdownScript"; position?: { start: { line: number; column: number; offset: number; }; end: { line: number; column: number; offset: number; }; indent?: number[]; }; value?: string; children?: Node[]; }, opts: { gfm?: boolean; commonmark?: boolean; pedantic?: boolean; entities?: string; setext?: boolean; closeAtx?: boolean; looseTable?: boolean; spacedTable?: boolean; incrementListMarker?: boolean; fences?: boolean; fence?: string; bullet?: string; listItemIndent?: string; rule?: string; ruleSpaces?: boolean; ruleRepetition?: number; strong?: string; emphasis?: string; }) => string; export default compilerFactory;