UNPKG

@mui/internal-docs-infra

Version:

MUI Infra - internal documentation creation tools.

9 lines 405 B
import type { Root as HastRoot, Element, Text, RootContent } from 'hast'; /** * Extracts all text content from a HAST node recursively. */ export declare function getHastTextContent(node: HastRoot | Element | Text | RootContent): string; /** * Gets the direct text content of a HAST element (non-recursive, first level only). */ export declare function getShallowTextContent(element: Element): string;