///
///
import * as child_process from "child_process";
import { BlockInfo } from "block-info";
import * as vscode from "vscode";
export declare function escapeString(str?: string): string;
export declare function unescapeString(str?: string): string;
export interface ParserConfig {
onWillParseMarkdown?: (markdown: string) => Promise;
onDidParseMarkdown?: (html: string, opts: {
cheerio: CheerioAPI;
}) => Promise;
onWillTransformMarkdown?: (markdown: string) => Promise;
onDidTransformMarkdown?: (markdown: string) => Promise;
}
/**
* Do nothing and sleep for `ms` milliseconds
* @param ms
*/
export declare function sleep(ms: number): Promise;
export declare function parseYAML(yaml?: string): any;
export declare function readFile(file: string, options?: any): Promise;
export declare function writeFile(file: string, text: any, options?: any): Promise;
export declare function write(fd: number, text: string): Promise;
export declare function tempOpen(options: any): Promise;
export declare function execFile(file: string, args: string[], options?: object): Promise;
/**
* open html file in browser or open pdf file in reader ... etc
* @param filePath
*/
export declare function openFile(filePath: string): child_process.ChildProcess;
/**
* get the directory path of this extension.
*/
export declare const extensionDirectoryPath: string;
/**
* compile ~/.mumi/style.less and return 'css' content.
*/
export declare function getGlobalStyles(configPath: any): Promise;
/**
* Get default config path
* @
*/
export declare function getConfigPath(): string;
/**
* load ~/.config/mume/mermaid_config.js file.
*/
export declare function getMermaidConfig(configPath: any): Promise;
export declare const defaultMathjaxConfig: {
extensions: string[];
jax: string[];
messageStyle: string;
tex2jax: {
processEnvironments: boolean;
processEscapes: boolean;
};
TeX: {
extensions: string[];
};
"HTML-CSS": {
availableFonts: string[];
};
};
export declare const defaultKaTeXConfig: {
macros: {};
};
/**
* load ~/.config/mume/mathjax_config.js file.
*/
export declare function getMathJaxConfig(configPath: any): Promise