import { ComponentType, ReactElement } from 'react'; import { copyTextToClipboard } from './copy-text-to-clipboard'; import { CopyToClipboardTooltip } from '../components/CopyToClipboardTooltip/CopyToClipboardTooltip'; export { copyTextToClipboard }; export interface CopyToClipboardProps { text: string; onCopy?: (text: string, result: boolean) => void; options?: { debug?: boolean; message?: string; format?: string; }; children: ReactElement; } /** `react-copy-to-clipboard`'s component, typed here so apps don't need that package's types. */ export declare const CopyToClipboard: ComponentType; export type WithCopyToClipboardOptions = { /** Prop holding the text to copy. Default 'text'. */ textProp?: string; /** Prop holding the onCopy callback. Default 'onCopy'. */ onCopyProp?: string; /** Prop holding the onError callback. Default 'onError'. */ onErrorProp?: string; }; /** Higher-order component that wraps a component with copy-to-clipboard functionality. */ export declare const withCopyToClipboard:

(WrappedComponent: ComponentType

, options?: WithCopyToClipboardOptions) => ComponentType

; /** Copies `text` (or a text passed to `copy`); `copied` stays true for 2 seconds. */ export declare const useCopyToClipboard: (text?: string) => { copy: (customText?: string) => Promise; copied: boolean; }; /** * @deprecated Import `CopyToClipboardTooltip` instead — this spelling is kept * for the existing call sites. */ export declare const CopyToClipBoardTooltip: ({ value, buttonStyle, onCopy, children, copiedLabel, idleLabel, resetAfter, }: import('..').CopyToClipboardTooltipProps) => import("react/jsx-runtime").JSX.Element; export { CopyToClipboardTooltip };