import { type ReactNode } from 'react'; import { type IntlShape } from 'react-intl'; /** * This extracts the text content from a `ReactNode` label. If there are no text children - e.g. the user defined their own component * and passes it to the label like this: `label={}` - then the name is used as fallback. * The name is the unique identifier of each item and must be a string. */ export declare const getTextFromNode: (node: ReactNode, intl: IntlShape, name: string) => string;