cerebrate/webroot/js/node_modules/mermaid/dist/preprocess.d.ts

11 lines
443 B
TypeScript
Raw Normal View History

2023-10-05 11:00:51 +02:00
import type { DiagramMetadata } from './diagram-api/types.js';
/**
* Preprocess the given code by cleaning it up, extracting front matter and directives,
* cleaning and merging configuration, and removing comments.
* @param code - The code to preprocess.
* @returns The object containing the preprocessed code, title, and configuration.
*/
export declare function preprocessDiagram(code: string): DiagramMetadata & {
code: string;
};