import type React from 'react'; import type { DismissDetail } from './types.js'; /** * @csspart base, content */ export interface AlertOwnProps { /** * Unique identifier for the element. * @example 'example-id' */ id?: string; /** * Title text. * @example 'Example title' */ title?: string; /** * Secondary descriptive text rendered inside Shadow DOM. Not the same as React children — use the `description` prop for helper text. * @example 'Additional context' */ description?: string; /** * Visual style variant. Allowed values: `subtle`, `filled`, `outline`. * @example 'subtle' */ variant?: 'subtle' | 'filled' | 'outline'; /** * Semantic color intent (e.g. primary, success, danger). Allowed values: `neutral`, `primary`, `info`, `success`, `warning`, `danger`. * @example 'neutral' */ intent?: 'neutral' | 'primary' | 'info' | 'success' | 'warning' | 'danger'; /** * Component size. Allowed values: `xs`, `sm`, `md`, `lg`, `xl`. * @example 'xs' */ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl'; /** * Whether to display the intent icon (default: true). * @defaultValue true * @example true */ showIcon?: boolean; /** * Icon name to display. * @example 'example' */ icon?: string; /** * Whether the component can be dismissed by the user. * @defaultValue false * @example true */ dismissible?: boolean; /** * Accessible label for the dismiss/close button. * @example 'example' */ dismissLabel?: string; /** * Reduced-padding variant for inline or dense layouts. * @defaultValue false * @example true */ compact?: boolean; /** * Adds role="status" for live-region announcements. * @defaultValue false * @example true */ dynamic?: boolean; /** * Pre-rendered HTML for action buttons (e.g. retry, undo). * @example 'example' */ actionsHtml?: string; /** * Fires when the user dismisses the component. Detail: `DismissDetail`. * @example (event) => console.log(event.detail) */ onDismiss?: (event: CustomEvent) => void; /** Content for the `actions` slot. * @example Content */ actions?: React.ReactNode; /** CSS class applied to the Custom Element host. * @example 'my-component' */ className?: string; /** Inline styles applied to the Custom Element host. * @example { marginTop: 8 } */ style?: React.CSSProperties; } /** * Props for ``: the component's own API plus every standard DOM * attribute and native React event handler, forwarded verbatim to the * `` host — `id`, `data-*`, `aria-*`, `title`, `tabIndex`, * `slot`, `onMouseEnter`, and the rest. Own props always win over a * same-named DOM attribute. */ export type AlertProps = AlertOwnProps & Omit, keyof AlertOwnProps | 'children' | 'dangerouslySetInnerHTML'>; export declare const Alert: React.ForwardRefExoticComponent, "children" | "dangerouslySetInnerHTML" | keyof AlertOwnProps> & React.RefAttributes>;