import { convert as htmlToText } from 'html-to-text';
export declare function htmlToMarkdown(html: string): string;
export { htmlToText };
/**
* 从 Content-Type header 或 HTML meta 标签中检测字符编码
* 返回 Node.js TextDecoder 支持的编码名,默认 'utf-8'
*/
export declare function detectEncoding(contentType: string | undefined, htmlHead: Buffer): string;
/** 将常见编码别名规范化为 TextDecoder 支持的名称 */
export declare function normalizeCharset(raw: string): string;
/**
* 扫描 Markdown 内容中的相对链接 [text](path.md),
* 解析为绝对路径并内联文件内容,避免 LLM 用 read_file 猜测路径
*/
export declare function inlineMarkdownRefs(content: string, sourceFilePath: string): string;
//# sourceMappingURL=web-utils.d.ts.map