import type { Root, Link, InlineCode } from 'mdast'; export declare function getAst(mdData: string): Root; export declare function toMd(astTree: Root): string; export interface ILinkItem { node: Link; keyChain: string[]; } export declare function getLinkList(curNode: Root): ILinkItem[]; export interface IInlinkCodeItem { node: InlineCode; keyChain: string[]; } export declare function getInLineCodeList(curNode: Root): IInlinkCodeItem[];