export type CoverMode = 'sharp' | 'network' | 'auto'; export interface RenderOptions { theme?: string; customCss?: string; highlight?: string; macStyle?: boolean; footnote?: boolean; /** 是否在无封面时自动根据标题获取封面图 */ autoCover?: boolean; /** 封面模式: sharp(SVG生成)|network(网络抓取)|auto(自动选择) */ coverMode?: CoverMode; } export interface RenderResult { title: string; html: string; author?: string; cover?: string; source_url?: string; /** front-matter 摘要(微信 digest 用) */ summary?: string; /** 自动获取的封面图本地路径(需在使用后清理) */ autoCoverPath?: string; } /** * 处理 Mermaid 代码块,将它们转换为图片 * 各平台适配器可调用此函数 */ export declare function processMermaid(html: string, outputDir: string): Promise<{ html: string; tempFiles: string[]; }>; export declare function renderMarkdown(content: string, options?: RenderOptions): Promise;