export declare function escapeMarkdown(text: string): string;
export declare function escapeId(text: string | number): string;
/**
 * Converts mermaid code (potentially produced by {@link graphToMermaid}) to an url that presents the graph in the mermaid editor.
 *
 * @param code - code to convert
 * @param edit - if true, the url will point to the editor, otherwise it will point to the viewer
 */
export declare function mermaidCodeToUrl(code: string, edit?: boolean): string;
