import { MouseEvent, FocusEvent, ReactElement } from 'react'; import { IconName } from '../Icon'; import { CommonProps } from '../common'; export interface IconButtonProps extends CommonProps { /** * Button's icon name. */ icon: IconName; /** * Visual intent color to apply to icon button. */ intent?: 'inherit' | 'primary' | 'danger' | 'success' | 'warning' | 'error' | 'text' | 'subdued-text' | 'disabled-text'; /** * `blur` event handler. */ onBlur?: (e: FocusEvent) => void; /** * `click` event handler. */ onClick?: (e: MouseEvent) => void; /** * Size of button. */ size?: 'small' | 'medium' | 'large'; /** * Specifies the HTML attribute type of button. */ type?: 'submit' | 'reset' | 'button'; } declare const IconButton: ({ icon, onClick, onBlur, intent, size, type, id, className, style, sx, "data-test-id": dataTestId, }: IconButtonProps) => ReactElement; export default IconButton;