import * as React from 'react'; import { ButtonProps as ReakitButtonProps } from 'reakit'; import { ButtonType, Omit, Size, Palette } from '../types'; import { BoxProps } from '../Box'; import { IconProps } from '../Icon'; import { SpinnerProps } from '../Spinner'; export declare type LocalButtonProps = { /** Icon that appears on the right side of the button. */ iconAfter?: IconProps['icon']; iconAfterProps?: Omit; /** Icon that appears on the left side of the button. */ iconBefore?: IconProps['icon']; iconBeforeProps?: Omit; /** Adds a loading indicator to the button. */ isLoading?: boolean; /** Makes the button not interactable. */ isStatic?: boolean; palette?: Palette; size?: Size; /** Custom props for the isLoading spinner. */ spinnerProps?: SpinnerProps; type?: ButtonType; ignoreGrayOverride?: boolean; }; export declare type ButtonProps = BoxProps & ReakitButtonProps & LocalButtonProps; export declare const Button: React.ForwardRefExoticComponent & React.RefAttributes> & { displayName?: string; useProps: (props?: Partial, config?: { disableCSSProps?: string[]; themeKey?: string; }) => any; };