/**
* Simple HTML to Markdown converter.
* No external dependencies - uses regex-based parsing.
*
* @module html-to-md
*/
export interface HtmlToMarkdownOptions {
/** Remove boilerplate elements (nav, header, footer, etc.). */
removeBoilerplate?: boolean;
/** Maximum length of output. */
maxLength?: number;
/** Base URL for resolving relative links. */
baseUrl?: string;
}
/**
* Extract the title from HTML.
*/
export declare function extractTitle(html: string): string;
/**
* Extract meta description from HTML.
*/
export declare function extractDescription(html: string): string;
/**
* Convert HTML to clean Markdown text.
*/
export declare function htmlToMarkdown(html: string, options?: HtmlToMarkdownOptions): string;
/**
* Extract all links from HTML.
*/
export interface HtmlLink {
title: string;
href: string;
}
export declare function extractLinks(html: string, baseUrl?: string): HtmlLink[];
//# sourceMappingURL=html-to-md.d.ts.map