import React from 'react';
/**
 * 从 React 节点中提取文本内容
 * @param node React 节点
 * @returns 提取的文本字符串
 * @example
 * extractTextFromNode(<span>Hello</span>) // => 'Hello'
 * extractTextFromNode('Hello') // => 'Hello'
 * extractTextFromNode([<span>Hello</span>, ' ', <span>World</span>]) // => 'Hello World'
 */
export declare const extractTextFromNode: (node: React.ReactNode) => string;
/**
 * 从按钮 props 中提取显示文本
 * @param buttonProps 按钮的 props
 * @param fallback 默认文本
 * @returns 显示文本
 */
export declare const extractButtonLabel: (buttonProps: {
    children?: React.ReactNode;
} | undefined, fallback: string) => string;
