import * as React from 'react'; import { ButtonColor, ButtonTypes, NormalSizes, ButtonHTMLTypes, ButtonShapes } from '../config-provider'; import './style/index.less'; interface ButtonOptions { className?: string; shape?: ButtonShapes; variant?: ButtonTypes; disabled?: boolean; loading?: boolean; size?: NormalSizes; color?: ButtonColor; children?: React.ReactNode; danger?: boolean; } export type NativeButtonProps = { htmlType?: ButtonHTMLTypes; onClick?: React.MouseEventHandler; } & ButtonOptions & Omit, 'type' | 'onClick'>; export type ButtonProps = Partial; declare const Button: React.FC; export default Button;