/** * 导入CopyConfig配置类型,用于兼容Ant Design的复制配置。 */ import { CopyConfig } from 'antd/es/typography/Base'; import React from 'react'; /** * 初始化复制功能的配置对象。 * @returns {Object} 初始化的配置对象,包含icon属性。 */ export declare const defaultConfig: { icon: (React.JSX.Element | null)[]; }; /** * 格式化可复制的配置。 * 该函数旨在处理不同类型的copyable输入,以统一的格式返回复制配置。 * @param {boolean | CopyConfig | undefined} copyable - 可能的布尔值、CopyConfig对象或未定义。 * @returns {Object | boolean} - 返回处理后的配置对象或false。 */ export declare const formatCopyable: (copyable: boolean | CopyConfig | undefined) => false | { icon: (React.JSX.Element | null)[]; } | { text?: string | (() => string | Promise) | undefined; onCopy?: ((event?: React.MouseEvent | undefined) => void) | undefined; icon: string | number | boolean | React.ReactElement> | Iterable | (React.JSX.Element | null)[] | null; tooltips?: React.ReactNode; format?: "text/plain" | "text/html" | undefined; tabIndex?: number | undefined; };