import type { Node } from './types.js'; /** * Simple HTML to Node converter * Converts basic HTML string to Telegraph Node array * Supports: p, b, i, strong, em, a, br, h3, h4, blockquote, code, pre, ul, ol, li, figure, figcaption, img, video, iframe * * @param html - HTML string to convert * @returns Array of Telegraph Node objects */ export declare function htmlToNodes(html: string): Node[]; /** * Convert Markdown to HTML * Supports basic Markdown syntax and converts it to Telegraph-compatible HTML * * @param markdown - Markdown string to convert * @returns HTML string */ export declare function markdownToHtml(markdown: string): string; /** * Parse content input - accepts either HTML string, Markdown string, or Node array * * @param content - Content as HTML string, Markdown string, or Node array * @param format - Content format ('html' or 'markdown'), only used if content is a string * @returns Array of Telegraph Node objects */ export declare function parseContent(content: string | Node[], format?: 'html' | 'markdown'): Node[]; /** * Convert Telegraph Node array to JSON-serializable format * * @param nodes - Array of Telegraph Node objects * @returns JSON-serializable array of strings and objects */ export declare function nodesToJson(nodes: Node[]): (string | object)[]; /** * Convert Telegraph Node array to Markdown format * * @param nodes - Array of Telegraph Node objects * @returns Markdown string */ export declare function nodesToMarkdown(nodes: Node[]): string; /** * Convert Telegraph Node array to HTML format * * @param nodes - Array of Telegraph Node objects * @returns HTML string */ export declare function nodesToHtml(nodes: Node[]): string; //# sourceMappingURL=utils.d.ts.map