import type { ReactNode } from 'react'; /** * Extracts only the text contents of a ReactNode *recursively*. * * Be aware that depending on the size of the node element tree this function * can ve very slow and actually throw a StackOverflow error. Shouldn't be a * problem for elements that you expect a shallow or raw text input. * * @example * // Results on `Foo Bar` * getReactNodeTextContent(
Foo Bar
) * * @see {@link https://stackoverflow.com/a/60564620/4595583} for the inspiration */ export declare const getReactNodeTextContent: (node: ReactNode) => string; //# sourceMappingURL=get-react-node-text-content.d.ts.map