/**
 * Mermaid Plugin for RecursiveRenderer
 * Detects code blocks with language="mermaid" and renders them a
      // 传递配置的主题和流式状态
      const props: any = {
        code,
        isStreaming: context?.isStreaming || false
      };
      
      if (theme) {
        props.theme = theme;
      }
      
      return h(MermaidDiagram, props)
    }
  }
}ms
 */
import type { CustomPlugin } from '../../types';
/**
 * Mermaid 插件配置选项
 */
export interface MermaidPluginOptions {
    /**
     * 优先级（默认 80，高于 CodeBlock 以拦截 mermaid 代码块）
     */
    priority?: number;
    /**
     * Mermaid 主题配置
     */
    theme?: 'default' | 'dark' | 'forest' | 'neutral';
    /** Optional CSS URL to load for Mermaid (consumers can provide local file path) */
    cssUrl?: string;
    /**
     * 渲染错误发生时的回调函数
     */
    onError?: (error: Error | string, code: string) => void;
}
/**
 * Mermaid Plugin
 * Test: matches <pre><code class="language-mermaid">
 * Render: creates MermaidDiagram component with code content
 *
 * @param options - 插件配置选项
 * @param options.priority - 优先级（默认 80）
 * @param options.theme - Mermaid 主题
 * @returns CustomPlugin
 *
 * @example
 * ```ts
 * // 默认配置
 * { plugin: mermaidPlugin }
 *
 * // 自定义优先级和主题
 * {
 *   plugin: mermaidPlugin,
 *   options: {
 *     priority: 90,
 *     theme: 'dark'
 *   }
 * }
 * ```
 */
export declare function mermaidPlugin(options?: MermaidPluginOptions): CustomPlugin;
export default mermaidPlugin;
