import type { Options as ClipboardOptions } from 'copy-to-clipboard'; import type { ButtonProps } from '../button'; import type { LinkProps } from '../link'; import type { TooltipInstance } from '../tooltip'; export type CopyComponentType = 'link' | 'button'; type CopyBaseProps = { content?: string; tooltip?: string; tooltipProps?: TooltipInstance['$props']; clipboardProps?: ClipboardOptions; textInherit?: boolean; successMessage?: string; }; export type CopyLinkProps = CopyBaseProps & LinkProps & { component?: 'link'; }; export type CopyButtonProps = CopyBaseProps & ButtonProps & { component: 'button'; }; export type CopyProps = CopyLinkProps | CopyButtonProps; export {};