import * as React from 'react'; import type { SemanticClassName } from "../_util/classNameUtils"; import type { SizeType } from '../config-provider/SizeContext'; declare const ButtonTypes: readonly ["default", "primary", "link", "text"]; export type ButtonType = (typeof ButtonTypes)[number]; declare const ButtonShapes: readonly ["default", "round"]; export type ButtonShape = (typeof ButtonShapes)[number]; declare const ButtonHTMLTypes: readonly ["submit", "button", "reset"]; export type ButtonHTMLType = (typeof ButtonHTMLTypes)[number]; export interface BaseButtonProps { type?: ButtonType; icon?: React.ReactNode; shape?: ButtonShape; size?: SizeType; disabled?: boolean; loading?: boolean | { delay?: number; }; prefixCls?: string; className?: SemanticClassName<{ icon?: string; }>; danger?: boolean; children?: React.ReactNode; } type MergedHTMLAttributes = Omit & React.ButtonHTMLAttributes & React.AnchorHTMLAttributes, 'type' | 'className'>; export interface ButtonProps extends BaseButtonProps, MergedHTMLAttributes { href?: string; htmlType?: ButtonHTMLType; autoInsertSpace?: boolean; } type CompoundedComponent = React.ForwardRefExoticComponent> & {}; declare const Button: CompoundedComponent; export default Button;