import { Ref, RefAttributes } from "react"; import { HoverProps } from "@react-aria/interactions"; import type { AriaButtonProps } from "@react-types/button"; import { DOMProps } from "@react-types/shared"; import { ForwardedRefComponent } from "../../types/components"; export declare type ButtonElementType = HTMLButtonElement; export declare type Variant = "primary" | "secondary" | "ghost" | "inverse" | "inverse-ghost"; export declare type Size = "small" | "medium" | "large"; export interface ButtonProps extends AriaButtonProps<"button" | "a" | "span">, DOMProps, HoverProps, RefAttributes { /** Custom class name for setting specific CSS */ className?: string; /** Shortlist of styles */ variant?: Variant; size?: Size; /** Display loading spinner */ loading?: boolean; /** Display success style */ success?: boolean; } export declare type ButtonRef = Ref; declare const Button: ForwardedRefComponent; export { Button };