export type MarkdownParseResult = {
    success: boolean;
    blocks: unknown[];
    error: string;
    rest: string;
};
/** Parse a Markdown string into an array of block nodes using tarsec's
 *  Markdown parser. Returns an object with `success`, the parsed `blocks`,
 *  a textual `error` message (empty on success), and any unconsumed input
 *  in `rest`. */
export declare function _parseMarkdown(input: string): MarkdownParseResult;
/** Walk a Markdown AST (array of block nodes), calling `fn` on every node
 *  top-down. `fn` returns a (possibly new) node; children of the returned
 *  node are then walked. The input AST is not mutated. */
export declare function _walkMarkdown(blocks: unknown, fn: unknown): Promise<unknown[]>;
/** Render a Markdown AST (array of block nodes) to an ANSI-styled string
 *  suitable for direct printing in a terminal. Links use OSC 8 escapes so
 *  capable terminals render them as clickable hyperlinks. Code-block
 *  bodies are emitted verbatim — pre-walk them if you want syntax
 *  highlighting inside. */
export declare function _renderMarkdownForCli(blocks: unknown): string;
