/** * Recursively extracts plain text content from React children. * * Useful for converting JSX to plain text for accessibility purposes * like screenreader announcements or aria-labels. * * Also handles components that use a `text` prop instead of children * (e.g. the Markdown component). * * @param children - React children to extract text from * @returns Plain text string with all text content joined by spaces * * @example * ```tsx * const text = extractTextContent( *
Hello world!
* ); * // Returns: "Hello world !" * * ``` */ export declare const extractTextContent: (children: React.ReactNode) => string;