import React from 'react';
import type { MarkdownEditorProps } from '../MarkdownEditor/types';
export interface MarkdownLinkInterceptConfig {
    openInNewTab?: boolean;
    onClick?: (url?: string) => boolean | void;
}
/**
 * 从 GFM 脚注引用 <sup><a href="#user-content-fn-x">…</a></sup> 解析标识符
 */
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<FncRefForMarkdownProps>;
