import type { HTMLAttributes, ReactNode } from 'react';
import type { SxProp } from '../Layout/sx.js';
export type AlertColor = 'info' | 'success' | 'warning' | 'danger';
export interface AlertProps extends Omit, 'title'> {
color?: AlertColor;
solid?: 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;
title?: ReactNode;
children?: ReactNode;
/** Custom icon node. Pass `false` to hide the default icon. */
icon?: ReactNode | false;
/** Inline action slot — a button or link rendered on the right. */
action?: ReactNode;
/** When provided, renders a close button that invokes this callback. */
onDismiss?: () => void;
/**
* Play a short exit animation before `onDismiss` fires. Default `true`;
* skipped under `prefers-reduced-motion`. Set `false` for an immediate callback.
*/
exitAnimation?: boolean;
/** Accessible label for the dismiss button. */
dismissLabel?: string;
}