UNPKG

443 BTypeScriptView Raw
1import type { DiagramMetadata } from './diagram-api/types.js';
2/**
3 * Preprocess the given code by cleaning it up, extracting front matter and directives,
4 * cleaning and merging configuration, and removing comments.
5 * @param code - The code to preprocess.
6 * @returns The object containing the preprocessed code, title, and configuration.
7 */
8export declare function preprocessDiagram(code: string): DiagramMetadata & {
9 code: string;
10};