import * as React from 'react'; import { IconProps } from 'react-magma-icons'; import { Omit, XOR } from '../../utils'; import { ButtonProps, ButtonSize } from '../Button'; export declare enum ButtonIconPosition { left = "left", right = "right" } export interface IconOnlyButtonProps extends Omit { /** * Icon to display within the component */ icon: React.ReactElement; /** * The text the screen reader will announce. Required for icon-only buttons */ 'aria-label': string; } export interface IconTextButtonProps extends ButtonProps { /** * Icon to display within the component */ icon: React.ReactElement; /** * Position within the button for the icon to appear * @default ButtonIconPosition.right */ iconPosition?: ButtonIconPosition; /** * Leading icon to display on the left side of the button */ leadingIcon?: React.ReactElement; /** * The content of the component */ children: React.ReactChild | React.ReactChild[]; } export declare type IconButtonProps = XOR; export interface SpanProps { hasIconLeading?: boolean; size?: ButtonSize; } export declare function getIconSize(size: any, theme: any): any; export declare function instanceOfIconOnly(object: any): object is IconOnlyButtonProps; export declare const IconButton: React.ForwardRefExoticComponent<({} & IconTextButtonProps & React.RefAttributes) | ({ children?: never; iconPosition?: never; leadingIcon?: never; } & IconOnlyButtonProps & React.RefAttributes)>;