import { ReactElement, HTMLAttributes, ReactNode } from 'react';
import { DataAttributes } from '../utils/data-attributes';
export interface CopyButtonProps {
text: string;
onCopy?: (text: string) => void;
block?: boolean;
/** @deprecated No longer has any effect; copying works inside focus traps. */
focusTrapPaused?: boolean;
className?: string;
tooltipColoring?: 'light' | 'dark';
tooltipTextSize?: 'xs' | 's' | 'none';
tooltipContent?: string;
children?: ReactNode;
passthroughProps?: HTMLAttributes & DataAttributes;
}
/**
* A button that, when clicked, copies the designated text to the clipboard.
*
* The static function `CopyButton.isCopySupported` returns a boolean
* indicating whether the current browser will support automatic copying.
* If it does not, you might want to hide your copy button and make sure
* the user is able to manually select and copy the text.
*/
declare function CopyButton({ text, onCopy, block, className, children, tooltipColoring, tooltipTextSize, tooltipContent, passthroughProps }: CopyButtonProps): ReactElement;
declare namespace CopyButton {
var propTypes: {
/**
* The text that will be copied when the button is clicked.
*/
text: any;
/**
* Invoked when the button is clicked.
* Passed one argument: the `text` prop.
*/
onCopy: any;
/**
* If `true`, the element will be `block` displayed instead of `inline-block`.
*
* This is sometimes necessary to get your pixel-perfect layout, if you don't
* want the extra line-height that wraps inline elements. Typically, you
* should only set `block` to `true` if the parent element is controlling
* width (in a layout that uses flexbox, absolute positioning, or floats).
*/
block: any;
/**
* Deprecated. No longer has any effect, since copying works inside focus
* traps like `Modal` without any extra configuration.
*/
focusTrapPaused: any;
/**
* The `className` prop of the `