/** * Mermaid 图表处理 * * 负责渲染 Mermaid 图表,以及缩放、拖拽、下载等交互功能。 */ import type { XMarkdownRenderedBlock } from './markdown'; /** * 管理 Mermaid 图表的渲染与交互 */ export declare function useMermaid(getRenderedBlockData: (id: string) => XMarkdownRenderedBlock | undefined, getPrefixCls: () => string): { syncBlocks: (container: HTMLElement) => void; setView: (actionElement: HTMLElement, view: 'diagram' | 'source') => void; stepScale: (block: HTMLElement, delta: number) => void; resetScale: (block: HTMLElement) => void; download: (actionElement: HTMLElement) => Promise; handlePointerDown: (e: PointerEvent, container: HTMLElement) => void; handlePointerMove: (e: PointerEvent) => void; handlePointerUp: (e: PointerEvent) => void; handleWheel: (e: WheelEvent, container: HTMLElement) => void; showFeedback: (button: HTMLElement, text: string) => void; finishDrag: () => void; clearTimers: () => void; }; /** * 复制文本到剪贴板 */ export declare function copyText(text: string): Promise;