export default escapeFactory; import { CompilerOptions, CompilerContext } from './compiler'; /** * Factory to escape characters. * * @example * var escape = escapeFactory({ commonmark: true }); * escape('x*x', { type: 'text', value: 'x*x' }) // 'x\\*x' * * @param {Object} options - Compiler options. * @return {function(value, node, parent): string} - Function which * takes a value and a node and (optionally) its parent and returns * its escaped value. */ declare function escapeFactory(context: CompilerContext, options: CompilerOptions): Function;