import { type TokensList } from "marked"; /** * Result of parsing GitHub-flavored markdown. * Contains both the token list (AST) and accessors for common elements. */ export interface MarkdownParseResult { /** Raw token list from marked lexer */ tokens: TokensList; /** Extract all headings with their depth and text */ headings: { depth: number; text: string; }[]; /** Extract all code blocks with optional language */ codeBlocks: { lang: string | undefined; text: string; }[]; /** Extract all links */ links: { href: string; text: string; }[]; /** Extract plain text content (strips formatting) */ plainText: string; } /** * Parses GitHub-flavored markdown into a structured result. * * Expects: markdown string input. * Returns: parsed tokens and extracted elements (headings, code blocks, links). */ export declare function markdownParse(markdown: string): MarkdownParseResult; //# sourceMappingURL=markdownParse.d.ts.map