import { FocusEventHandler, type KeyboardEventHandler, type MouseEventHandler } from 'react'; import { type IconName } from '../icon'; import { type ButtonSize } from './abstract'; export type Type = 'submit' | 'button' | 'reset'; export type ButtonType = 'primary' | 'secondary' | 'tertiary' | 'destructive-primary' | 'destructive-secondary' | 'destructive-tertiary'; export interface ButtonProps { id?: string; autofocus?: boolean; /** * Visual style * @default primary */ buttonType: ButtonType; className?: string; disabled?: boolean; /** * @default true */ focusable?: boolean; inverted?: boolean; label?: string; loading?: boolean; /** * @default Loading... */ loadingLabel?: string; /** * Size variant * @default medium */ size?: ButtonSize; tabIndex?: number; title?: string; type?: Type; leftIconName?: IconName; rightIconName?: IconName; onClick?: MouseEventHandler; onFocus?: FocusEventHandler; onBlur?: FocusEventHandler; onKeyDown?: KeyboardEventHandler; } export declare const Button: import("react").ForwardRefExoticComponent>;