import type { ButtonHTMLAttributes, ReactNode } from 'react';
import type { SxProp } from '../Layout/sx.cjs';
export type ButtonVariant = 'solid' | 'secondary' | 'outline' | 'dashed' | 'ghost' | 'soft' | 'link';
export type ButtonColor = 'primary' | 'danger' | 'warning' | 'success' | 'info';
export type ButtonSize = 'sm' | 'md' | 'lg';
export type ButtonShape = 'default' | 'round' | 'circle';
export type ButtonIconPosition = 'start' | 'end';
export interface ButtonProps extends ButtonHTMLAttributes {
/** Visual tier. Default: `'solid'`. */
variant?: ButtonVariant;
/** Semantic color role. Default: `'primary'`. */
color?: ButtonColor;
/** Size modifier. `'md'` is the default (no class). */
size?: ButtonSize;
/** Corner style. `'round'` → pill, `'circle'` → icon-only circular. */
shape?: ButtonShape;
/** Stretch to full width of parent. */
block?: boolean;
/** Replace leading slot with a spinner and disable interaction. */
loading?: boolean;
/** Icon node placed in the leading or trailing slot. */
icon?: ReactNode;
/** Side to place the `icon` on. Default: `'start'`. */
iconPosition?: ButtonIconPosition;
/** Disable the MUI-style click ripple. Default: `false`. */
disableRipple?: boolean;
/**
* Render the single child element instead of a `
*/
asChild?: boolean;
/**
* One-off CSS, same as `Box`'s `sx`: each value may be a scalar or a
* responsive breakpoint map (`{ base, sm, md, lg, xl }`). Scalar-only sx
* merges into inline style; responsive sx injects a scoped class.
*/
sx?: SxProp;
children?: ReactNode;
}