/** * Markdown utilities for parsing and generating markdown content */ export interface MarkdownLink { text: string; url: string; title?: string; isInternal: boolean; lineNumber: number; startIndex: number; endIndex: number; } export interface MarkdownHeading { level: number; text: string; lineNumber: number; } /** * Extract all links from markdown content */ export declare function extractLinks(content: string): MarkdownLink[]; /** * Extract only internal links */ export declare function extractInternalLinks(content: string): MarkdownLink[]; /** * Extract all headings from markdown content */ export declare function extractHeadings(content: string): MarkdownHeading[]; /** * Get the title (first h1) from markdown content */ export declare function extractTitle(content: string): string | null; /** * Count words in markdown content (excluding code blocks and frontmatter) */ export declare function countWords(content: string): number; /** * Calculate estimated read time in minutes */ export declare function calculateReadTime(content: string, wordsPerMinute?: number): number; /** * Format read time as string */ export declare function formatReadTime(content: string): string; /** * Generate a markdown link */ export declare function createLink(text: string, url: string, title?: string): string; /** * Generate a markdown heading */ export declare function createHeading(text: string, level?: number): string; /** * Generate a markdown table */ export declare function createTable(headers: string[], rows: string[][]): string; /** * Generate a markdown list */ export declare function createList(items: string[], ordered?: boolean): string; /** * Generate a markdown checkbox list */ export declare function createCheckboxList(items: { text: string; checked: boolean; }[]): string; /** * Wrap text in a code block */ export declare function createCodeBlock(code: string, language?: string): string; /** * Create an inline code span */ export declare function createInlineCode(code: string): string; /** * Create a blockquote */ export declare function createBlockquote(text: string): string; /** * Slugify text for use in URLs/anchors */ export declare function slugify(text: string): string; /** * Extract first paragraph as excerpt */ export declare function extractExcerpt(content: string, maxLength?: number): string; //# sourceMappingURL=markdown.d.ts.map