/** * Markdown renderer utility for React Native * Converts markdown to plain text with proper formatting */ export declare class MarkdownRenderer { /** * Parse markdown and convert to plain text with formatting */ static parseMarkdown(text: string): string; /** * Check if text contains markdown formatting */ static isMarkdown(text: string): boolean; /** * Extract code blocks from markdown */ static extractCodeBlocks(text: string): string[]; /** * Extract headers from markdown */ static extractHeaders(text: string): string[]; /** * Extract bullet points from markdown */ static extractBulletPoints(text: string): string[]; /** * Extract numbered list items from markdown */ static extractNumberedList(text: string): string[]; /** * Extract blockquotes from markdown */ static extractBlockquotes(text: string): string[]; /** * Detect all copyable sections in markdown content * Returns sections for: code blocks, tables, lists, and paragraphs (header + text) */ static detectCopyableSections(markdown: string): Array<{ type: "code" | "table" | "list" | "paragraph"; content: string; startIndex: number; endIndex: number; heading?: string; }>; /** * Extract clean content from a copyable section * Removes markdown formatting for better clipboard experience */ static extractCleanContent(section: { type: string; content: string; heading?: string; }): string; /** * Parse markdown into sections based on H1-H3 headings. * Each section includes the heading and all content below it until the next heading. * * @param markdown - The markdown text to parse * @returns Array of sections with heading, content, and level */ static parseIntoSections(markdown: string): Array<{ heading: string; content: string; level: 1 | 2 | 3; }>; /** * Extract table content as plain text with pipe separators. * Used for copying table data to clipboard. * * @param tableNode - The markdown AST node representing a table * @returns Plain text representation of the table */ static extractTableContent(tableNode: any): string; } //# sourceMappingURL=markdownRenderer.d.ts.map