import * as React from 'react'; import { Omit } from '../_util/type'; declare const ButtonTypes: ["primary", "ghost", "dashed", "link"]; declare type ButtonType = typeof ButtonTypes[number]; declare const ButtonHeights: ["24", "32", "36", "40", "50"]; declare type ButtonHeight = typeof ButtonHeights[number]; declare const ButtonHTMLTypes: ["submit", "button", "reset"]; declare type ButtonHTMLType = typeof ButtonHTMLTypes[number]; declare type BaseProps = { type?: ButtonType; height?: ButtonHeight; className?: string; loading?: boolean; block?: boolean; children?: React.ReactNode; }; declare type AnchorProps = { href: string; target?: string; onClick?: React.MouseEventHandler; } & BaseProps & Omit, 'type' | 'onClick'>; declare type ButtonProps = { htmlType?: ButtonHTMLType; onClick?: React.MouseEventHandler; } & BaseProps & Omit, 'type' | 'onClick'>; export declare type FinalProps = Partial; declare const Button: { (props: FinalProps): JSX.Element; defaultProps: { type: string; height: string; loading: boolean; block: boolean; htmlType: "button" | "submit" | "reset" | undefined; }; }; export default Button;