/** * TSDoc DocNode text extraction utilities for FormSpec tooling. * * Provides helpers for walking TSDoc DocNode trees and extracting plain text * content from DocBlock nodes. */ import { type DocNode, type DocBlock } from "@microsoft/tsdoc"; /** * Recursively extracts plain text content from a TSDoc DocNode tree. * * Walks child nodes and concatenates DocPlainText and DocSoftBreak content. */ export declare function extractPlainText(node: DocNode): string; /** * Extracts the plain text content from a TSDoc DocBlock node. */ export declare function extractBlockText(block: DocBlock): string; /** * Chooses the best payload text between a primary (shared syntax parse) source * and a fallback (TS compiler JSDoc API) source. * * Prefers the primary source unless the alternate is longer and starts with the * primary (indicating the compiler API captured more content), or the alternate * contains newlines (indicating multi-line content that the shared parser may * have truncated). */ export declare function choosePreferredPayloadText(primary: string, fallback: string): string; //# sourceMappingURL=tsdoc-text-extraction.d.ts.map