import { default as React, MouseEvent } from 'react'; import { BasicComponent } from '../../utils/typings'; export type ButtonType = 'default' | 'primary' | 'info' | 'success' | 'warning' | 'danger'; export type ButtonSize = 'xlarge' | 'large' | 'normal' | 'small' | 'mini'; export type ButtonShape = 'square' | 'round'; export type ButtonFill = 'solid' | 'outline' | 'dashed' | 'none'; export interface ButtonProps extends BasicComponent { color: string; shape: ButtonShape; type: ButtonType; size: ButtonSize; fill: ButtonFill; block: boolean; loading: boolean; disabled: boolean; icon: React.ReactNode; rightIcon: React.ReactNode; id: string; nativeType: 'submit' | 'reset' | 'button'; onClick: (e: MouseEvent) => void; } export declare const Button: React.ForwardRefExoticComponent & React.RefAttributes>;