import { HTML, IParserConfig, ISyntaxNode, ParsingState } from "./model";
/**
* Creates a parser with a configuration.
* @param config
*/
export declare function createParser(config: Partial): (source: string) => string;
/**
* Parses a markdown source to html.
* @param source
* @param config
*/
export declare function parse(source: string, config: IParserConfig): HTML;
/**
* Creates a syntax tree based on the rules of the language.
* @param source
* @param config
* @returns {any} A syntax tree
*/
export declare function syntaxTree(source: string, config: IParserConfig): ISyntaxNode[];
/**
* Turns a syntax tree into HTML based on the rules of the language.
* @param syntaxTree
* @param state The current parsing state (Block at the initial level)
* @returns {string} HTML.
*/
export declare function html(syntaxTree: ISyntaxNode[], state: ParsingState): HTML;