import { Root } from 'hast'; import { ParseOptions, ProcessorOptions } from './types'; /** * 将 Markdown 解析为 HAST(Hypertext Abstract Syntax Tree) * * @param content - Markdown 源文本 * @param options - 解析配置 * @returns HAST 根节点 * * @example * ```ts * const hast = parseToHast('# Hello World'); * console.log(hast.children); * ``` */ export declare function parseToHast(content: string, options?: ProcessorOptions): Root; /** * 将 Markdown 解析为 HTML 字符串 * * @param content - Markdown 源文本 * @param options - 解析配置 * @returns HTML 字符串 * * @example * ```ts * const html = parseToHtml('# Hello World'); * // => '

Hello World

' * ``` */ export declare function parseToHtml(content: string, options?: ProcessorOptions): string; /** * 通用解析函数,支持输出 HAST 或 HTML * * @param options - 解析配置(包含 content) * @returns 解析结果对象 */ export declare function parse(options: ParseOptions): { hast: Root; html: string; }; //# sourceMappingURL=parse.d.ts.map