import React, { ReactNode } from 'react'; import { BaseTextProps } from '../text'; import { TooltipProps } from '../tooltip'; export interface CopyTextProps { /** * 복사할 텍스트 내용 */ text: string; textProps?: BaseTextProps; /** * 복사할 텍스트 내용을 대체할 노드 * displayText가 있으면 text를 대체하여 보여지고, 실제 복사는 text 정보를 사용합니다. */ displayText?: ReactNode; /** * 복사 완료 시 표시할 텍스트 * @default '복사했어요.' */ copiedText?: string; tooltipProps?: Omit; /** @default false */ disabled?: boolean; className?: string; /** * 복사 완료 시 호출되는 콜백 */ onCopy?: (text: string) => void; /** * 복사 실패 시 호출되는 콜백 */ onCopyFailed?: (error: Error) => void; } export declare const CopyText: React.ForwardRefExoticComponent>;