import { ButtonHTMLAttributes, AnchorHTMLAttributes, FC, ReactNode } from 'react'; export declare type ButtonSize = 'lg' | 'sm'; export declare type ButtonType = 'primary' | 'default' | 'danger' | 'link'; export interface BaseButtonProps { /** * 类名 */ className?: string; disabled?: boolean; size?: ButtonSize; btnType?: ButtonType; children: ReactNode; href?: string; } declare type NativeButtonProps = BaseButtonProps & ButtonHTMLAttributes; declare type AnchorButtonProps = BaseButtonProps & AnchorHTMLAttributes; export declare type ButtonProps = Partial; export declare const Button: FC; export default Button;