import type { ComponentProps, ReactNode } from 'react'; export type AlertVariant = 'info' | 'success' | 'warning' | 'danger'; export interface AlertProps extends Omit, 'title'> { /** Meaning of the message. Sets the color, the default icon and the edge stripe. */ variant?: AlertVariant; /** Short heading above the description. */ title?: ReactNode; /** Replaces the default per-variant icon. `false` hides the icon. Always hidden from assistive tech. */ icon?: ReactNode | false; /** Trailing action, usually a small `Button`. */ action?: ReactNode; /** When set, renders a dismiss button that calls this. The alert does not hide itself. */ onDismiss?: () => void; /** Accessible name of the dismiss button. */ dismissLabel?: string; } /** * An inline message about the state of the page or a task. Static by default; * pass `role="alert"` or `role="status"` when it is inserted dynamically. */ export declare function Alert({ variant, title, icon, action, onDismiss, dismissLabel, className, children, ...rest }: AlertProps): import("react").JSX.Element;