import React from 'react'; import { BaseButtonProps as AntdBaseButtonProps } from 'antd/es/button/button'; import { SizeType } from '../config-provider/SizeContext'; import Group from './ButtonGroup'; declare const ButtonTypes: ["primary", "secondary", "default", "text", "link", "ghost", "dahsed"]; export declare type ButtonType = typeof ButtonTypes[number]; declare const ButtonShapes: ["default", "circle", "round"]; export declare type ButtonShape = typeof ButtonShapes[number]; declare const ButtonHTMLTypes: ["submit", "button", "reset"]; export declare type ButtonHTMLType = typeof ButtonHTMLTypes[number]; export declare type LegacyButtonType = ButtonType; export declare type ButtonSize = SizeType | 'xs' | 'xl'; export declare function convertLegacyProps(type?: LegacyButtonType): ButtonProps; export interface BaseButtonProps extends Omit { type?: ButtonType; size?: ButtonSize; underline?: boolean; } export declare type AnchorButtonProps = { href: string; target?: string; onClick?: React.MouseEventHandler; } & BaseButtonProps & Omit, 'type' | 'onClick'>; export declare type NativeButtonProps = { htmlType?: ButtonHTMLType; onClick?: React.MouseEventHandler; } & BaseButtonProps & Omit, 'type' | 'onClick'>; export declare type ButtonProps = Partial; interface CompoundedComponent extends React.ForwardRefExoticComponent> { Group: typeof Group; __ANT_BUTTON: boolean; } declare const Button: CompoundedComponent; export default Button;