import { EditorFnProps } from "../../../type"; import { Node } from '@tiptap/core'; import { MermaidConfig } from 'mermaid'; declare module '@tiptap/core' { interface Commands { flow: { setFlow: (options: { code?: string; width?: string | number; align?: 'left' | 'center' | 'right' | null; }) => ReturnType; }; } } export type FlowExtensionProps = EditorFnProps & { /** * Mermaid 配置选项 */ mermaidOptions?: MermaidConfig; }; export declare const FlowExtension: (props: FlowExtensionProps) => Node; export default FlowExtension;