import React from 'react'; import type { MarkdownEditorProps } from '../MarkdownEditor/types'; export interface MarkdownLinkInterceptConfig { openInNewTab?: boolean; onClick?: (url?: string) => boolean | void; } interface FootnoteSupHastNode { type?: string; tagName?: string; properties?: { href?: unknown; }; children?: FootnoteSupHastNode[]; } /** JSX component mapping may replace the anchor's React type before sup runs. */ export declare const extractFootnoteRefFromSupHast: (node?: FootnoteSupHastNode) => { identifier: string; url?: string; } | undefined; /** * 从 GFM 脚注引用 … 解析标识符 */ export declare const extractFootnoteRefFromSupChildren: (children: React.ReactNode) => { identifier: string; url?: string; } | undefined; export interface FncRefForMarkdownProps { fncProps?: MarkdownEditorProps['fncProps']; linkConfig?: MarkdownLinkInterceptConfig; identifier: string; children: React.ReactNode; url?: string; } /** * 将 Markdown hast 中的脚注引用与 Slate 只读路径的 FncLeaf 对齐 */ export declare const FncRefForMarkdown: React.FC; export {};