import React from 'react'; import { IconProps } from '../../Icons/Icon'; export declare const Button: React.MemoExoticComponent>>; declare type ButtonAnchorProps = React.ButtonHTMLAttributes & React.AnchorHTMLAttributes; declare type HTMLButtonAnchorElement = HTMLButtonElement & HTMLAnchorElement; export interface ButtonProps extends ButtonAnchorProps { /** Type of component to use * @default button * */ as?: 'a' | 'button'; /** Size of the button * @default default * */ size?: 'default' | 'large' | 'small'; /** Button variant * @default primary * */ variant?: 'primary' | 'secondary' | 'tertiary' | 'info' | 'warning' | 'danger'; /** * Button is loading * */ loading?: boolean; /** Make button full width * @default false */ fullWidth?: boolean; /** * Icon of the button */ icon?: IconProps['icon']; /** * React children * Also support render prop */ children?: React.ReactNode | ((props: ButtonProps) => React.ReactNode); } export {};