import type { CSSProperties, VNode } from 'vue'; import type { VueNode } from '../_util/type'; export type LatexOption = { katexOptions?: Record; replaceAlignStart?: boolean; }; type HighlightCodeType = 'root' | 'header' | 'headerTitle' | 'code'; export type HighlightCodeProps = { lang?: string; children: string; header?: VueNode | null; prefixCls?: string; style?: CSSProperties; className?: string; highlightProps?: Record; classNames?: Partial>; styles?: Partial>; }; type MermaidType = 'root' | 'header' | 'graph' | 'code'; export type MermaidProps = { children: string; header?: VueNode | null; prefixCls?: string; style?: CSSProperties; className?: string; highlightProps?: Record; classNames?: Partial>; styles?: Partial>; }; interface BaseComponentConfig { style: CSSProperties; styles: Record; className: string; classNames: Record; } type ComponentConfig, PickType extends keyof CompProps = keyof BaseComponentConfig> = Pick; export interface MarkdownComponentsConfig { highlightCode?: ComponentConfig; mermaid?: ComponentConfig; } export type PluginsType = { Latex: (options?: LatexOption) => any[]; HighlightCode: (props: HighlightCodeProps) => VNode; Mermaid: (props: MermaidProps) => VNode; }; export {};