import { MermaidConfig } from './config.type'; /** * @param text * @param parseError */ declare function parse(text: string, parseError?: Function): boolean; /** * * @param text * @param parseError */ declare function parseAsync(text: string, parseError?: Function): Promise; export declare const encodeEntities: (text: string) => string; export declare const decodeEntities: (text: string) => string; /** @param {MermaidConfig} options */ declare function initialize(options?: MermaidConfig): void; export declare const mermaidAPI: Readonly<{ render: (id: string, text: string, cb?: ((svgCode: string, bindFunctions?: ((element: Element) => void) | undefined) => void) | undefined, container?: Element) => string; renderAsync: (id: string, text: string, cb?: ((svgCode: string, bindFunctions?: ((element: Element) => void) | undefined) => void) | undefined, container?: Element) => Promise; parse: typeof parse; parseAsync: typeof parseAsync; parseDirective: (p: any, statement: string, context: string, type: string) => void; initialize: typeof initialize; getConfig: () => MermaidConfig; setConfig: (conf: MermaidConfig) => MermaidConfig; getSiteConfig: () => MermaidConfig; updateSiteConfig: (conf: MermaidConfig) => MermaidConfig; reset: () => void; globalReset: () => void; defaultConfig: MermaidConfig; }>; export default mermaidAPI; /** * ## mermaidAPI configuration defaults * * ```html * * ``` */