import * as React from 'react'; import { ThemeInterface } from '../../theme/magma'; export declare enum ButtonVariant { solid = "solid", link = "link" } export declare enum ButtonColor { primary = "primary", secondary = "secondary", danger = "danger", success = "success", marketing = "marketing", subtle = "subtle" } export declare enum ButtonShape { fill = "fill", leftCap = "leftCap", rightCap = "rightCap", round = "round" } export declare enum ButtonSize { large = "large", medium = "medium", small = "small" } export declare enum ButtonTextTransform { uppercase = "uppercase", none = "none" } export declare enum ButtonType { button = "button", submit = "submit", reset = "reset" } export interface ButtonStyles { /** * The color of the button, indicating its function in the UI * @default ButtonColor.primary */ color?: ButtonColor; /** * Set the button to display full-width. * @default false */ isFullWidth?: boolean; isInverse?: boolean; /** * Defines the border radius * @default ButtonShape.fill */ shape?: ButtonShape; /** * Set the button to a loading state * @default false */ isLoading?: boolean; /** * The relative size of the button * @default ButtonSize.medium */ size?: ButtonSize; /** * Determines whether the button appears in all-caps * @default ButtonTextTransform.none */ textTransform?: ButtonTextTransform; /** * The variant of the button * @default ButtonVariant.solid */ variant?: ButtonVariant; } interface BaseButtonProps extends React.ButtonHTMLAttributes { /** * @children required */ children: React.ReactNode; /** * @internal */ testId?: string; /** * @internal */ theme?: ThemeInterface; /** * The type attribute of the button * ButtonType.button */ type?: ButtonType; } export declare type ButtonProps = BaseButtonProps & ButtonStyles; export declare const Button: React.ForwardRefExoticComponent>; export {};