import type { MermaidApi } from './types';
export interface MermaidThemeToken {
    colorBgContainer?: string;
    colorBgElevated?: string;
    colorText?: string;
    colorTextSecondary?: string;
    colorBorder?: string;
    colorPrimary?: string;
    fontFamily?: string;
}
export interface MermaidThemeConfig {
    cacheKey: string;
    darkMode: boolean;
    themeVariables: Record<string, string>;
}
export declare const createMermaidThemeConfig: (token?: MermaidThemeToken) => MermaidThemeConfig;
export declare const applyMermaidTheme: (api: MermaidApi, themeConfig?: MermaidThemeConfig) => void;
/**
 * 加载 Mermaid 库
 * 使用单例模式确保只加载一次，并初始化配置
 */
export declare const loadMermaid: () => Promise<MermaidApi>;
/**
 * 渲染 SVG 到容器
 */
export declare const renderSvgToContainer: (svg: string, container: HTMLDivElement) => void;
/**
 * 清理 Mermaid 生成的临时元素
 */
export declare const cleanupTempElement: (id: string) => void;
