/** * Format Converter - Content-Type based format detection and conversion * * Handles format-appropriate conversion based on detected Content-Type. * Supports HTML, JSON, XML, and RSS/Atom feeds. */ /** * Detected format type */ export type FormatType = 'html' | 'json' | 'xml' | 'rss'; /** * Detect format from Content-Type header * * @param contentType - Content-Type header value (e.g., "application/json", "text/html; charset=utf-8") * @returns Detected format type */ export declare function detectFormat(contentType: string): FormatType; /** * Convert JSON content to formatted string * * @param raw - Raw JSON string * @returns Formatted JSON string with prefix, or raw string if parse fails */ export declare function convertJson(raw: string): string; /** * Convert XML content to clean text representation * * @param raw - Raw XML string * @returns Formatted XML representation with prefix, or tag-stripped fallback if parse fails */ export declare function convertXml(raw: string): string; /** * Convert RSS/Atom feed content to clean Markdown * * @param raw - Raw RSS/Atom XML string * @returns Formatted Markdown representation, or falls back to convertXml if parse fails */ export declare function convertRss(raw: string): string; //# sourceMappingURL=format-converter.d.ts.map