import React from 'react'; import { ButtonSize, ButtonVariant } from './types'; export declare const Button: React.ForwardRefExoticComponent<{ /** * Button variant type eg. primary */ variant?: ButtonVariant; /** * Button size */ size?: ButtonSize; children?: React.ReactNode | React.ReactNodeArray; disabled?: boolean; onClick?: (e: React.SyntheticEvent) => any; onBlur?: (e: React.SyntheticEvent) => any; onKeyPress?: React.KeyboardEventHandler; onMouseEnter?: () => any; onMouseLeave?: () => any; /** * Use with async onClick handlers to set loading indicator */ isAsync?: boolean; /** * DOM pass through */ className?: string; /** * DOM pass through */ id?: string; isLoading?: boolean; Loader?: any; type?: 'button' | 'submit' | 'reset'; } & React.RefAttributes>;