import React from "react"; import type { ButtonProps } from "./Button.js"; interface CopyButtonProps extends ButtonProps { /** * Value to copy to clipboard. */ value: string; /** * Callback function that is executed after the value is copied to the clipboard. */ onCopy?: () => void; } declare const CopyButton: ((props: CopyButtonProps) => React.JSX.Element) & { original: (props: CopyButtonProps) => React.JSX.Element; originalName: string; displayName: string; } & { original: ((props: CopyButtonProps) => React.JSX.Element) & { original: (props: CopyButtonProps) => React.JSX.Element; originalName: string; displayName: string; }; originalName: string; displayName: string; } & { createDecorator: (decorator: import("@webiny/react-composition/types.js").ComponentDecorator<((props: CopyButtonProps) => React.JSX.Element) & { original: (props: CopyButtonProps) => React.JSX.Element; originalName: string; displayName: string; }>) => (props: unknown) => React.JSX.Element; }; export { CopyButton, type CopyButtonProps };