2022-10-17 23:58:51 -03:00
> **Warning**
>
> ## THIS IS AN AUTOGENERATED FILE. DO NOT EDIT.
>
2022-10-29 00:46:25 +05:30
> ## Please edit the corresponding file in [/packages/mermaid/src/docs/config/setup/modules/mermaidAPI.md](../../../../packages/mermaid/src/docs/config/setup/modules/mermaidAPI.md).
2022-10-15 00:50:11 -03:00
# Module: mermaidAPI
## References
### <a id="default" name="default"></a> default
Renames and re-exports [mermaidAPI ](mermaidAPI.md#mermaidapi )
## Variables
### <a id="mermaidapi" name="mermaidapi"></a> mermaidAPI
2022-10-25 17:54:07 -03:00
• `Const` **mermaidAPI** : `Readonly` < { `defaultConfig` : `MermaidConfig` = configApi.defaultConfig; `getConfig` : () => `MermaidConfig` = configApi.getConfig; `getSiteConfig` : () => `MermaidConfig` = configApi.getSiteConfig; `globalReset` : () => `void` ; `initialize` : (`options` : `MermaidConfig` ) => `Promise` < `void` > ; `parse` : (`text` : `string` , `parseError?` : `ParseErrorFunction` ) => `boolean` ; `parseDirective` : (`p` : `any` , `statement` : `string` , `context` : `string` , `type` : `string` ) => `void` ; `render` : (`id` : `string` , `text` : `string` , `cb` : (`svgCode` : `string` , `bindFunctions?` : (`element` : `Element` ) => `void` ) => `void` , `container?` : `Element` ) => `Promise` < `void` > ; `reset` : () => `void` ; `setConfig` : (`conf` : `MermaidConfig` ) => `MermaidConfig` = configApi.setConfig; `updateSiteConfig` : (`conf` : `MermaidConfig` ) => `MermaidConfig` = configApi.updateSiteConfig }>
2022-10-15 00:50:11 -03:00
#### Defined in
2022-10-27 19:58:39 -03:00
mermaidAPI.ts:485
2022-10-15 00:50:11 -03:00
## Functions
### <a id="decodeentities" name="decodeentities"></a> decodeEntities
▸ **decodeEntities** (`text` ): `string`
#### Parameters
| Name | Type |
| :----- | :------- |
| `text` | `string` |
#### Returns
`string`
#### Defined in
2022-10-27 19:58:39 -03:00
mermaidAPI.ts:72
2022-10-15 00:50:11 -03:00
---
### <a id="encodeentities" name="encodeentities"></a> encodeEntities
▸ **encodeEntities** (`text` ): `string`
#### Parameters
| Name | Type |
| :----- | :------- |
| `text` | `string` |
#### Returns
`string`
#### Defined in
2022-10-27 19:58:39 -03:00
mermaidAPI.ts:46