import type { ContentState } from './types'; /** * 判断是否为 HTML 文件:扩展名或 MIME 任一命中 */ export declare const isHtmlFile: (fileName: string, mimeType?: string) => boolean; /** * 将 ContentState 收敛到三态展示标识 */ export declare const getContentStatus: (state: ContentState) => 'loading' | 'error' | 'done'; /** * 将原始文本按文件类别构造为 MarkdownEditor 可接收的内容 * * - 代码类(category === 'code'):用 ``` 围栏 + 推断语言包裹 * - 其他类型:原文返回 */ export declare const buildMarkdownContent: (raw: string, category: string, fileName: string) => string;