import React, { FC, ButtonHTMLAttributes, AnchorHTMLAttributes } from "react"; export declare type ButtonSize = "lg" | "sm" | "default"; export declare type ButtonType = "primary" | "default" | "danger" | "secondary" | "success" | "info" | "light" | "warning" | "dark" | "link"; export interface BaseButtonProps { className?: string; disabled?: boolean; /** 是否底色渐变 */ lineargradient?: boolean; /** 设置按钮大小 */ size?: ButtonSize; /** * 设置按钮类型 */ btnType?: ButtonType; /** link类型才有效的url */ href?: string; /** 回调ref,组件加载完成回调ref,返回值会在卸载组件时调用 */ refcallback?: (ref: React.RefObject) => (() => void) | undefined; } declare type NativeButtonProps = ButtonHTMLAttributes & BaseButtonProps; declare type AnchorButtonProps = BaseButtonProps & AnchorHTMLAttributes; export declare type ButtonProps = Partial; export declare const Button: FC; export default Button;