import * as React from "react"; /** * Defines the supported visual treatments for the Alert component. */ export type AlertVariant = "default" | "destructive"; /** * Represents the configurable props for the Alert component. * * @remarks * Extends native `
` attributes so alerts can expose ARIA relationships, * data attributes, and custom event handlers while selecting a visual variant. * * @default variant `"default"` */ export interface AlertProps extends React.HTMLAttributes { /** * Additional CSS classes merged with the base alert surface styles. */ className?: string; /** * The visual tone used to communicate neutral or destructive feedback. * * @default "default" */ variant?: AlertVariant; } /** * A bordered feedback container for inline status, warning, or error messaging. * * @remarks * **Rendering Context**: Server- and client-compatible presentational component. * * Renders a `
` with `role="alert"` so assistive technologies announce urgent * content. Use {@link AlertTitle} and {@link AlertDescription} to build a clear, * accessible message structure. * * @example * ```tsx * * Payment failed * Verify your card details and try again. * * ``` * * @see {@link AlertTitle} * @see {@link AlertDescription} * @see {@link https://base-ui.com/react/overview Base UI documentation} */ declare const Alert: React.ForwardRefExoticComponent>; /** * Represents the configurable props for the AlertTitle component. * * @remarks * Extends native heading attributes and exposes a class override for styling. */ interface AlertTitleProps extends React.HTMLAttributes { /** * Additional CSS classes merged with the alert title styles. */ className?: string; } /** * The heading slot for the primary alert message. * * @remarks * **Rendering Context**: Server- and client-compatible presentational component. * * Renders an `
` element styled for compact but prominent messaging. Pair it with * {@link AlertDescription} when the alert needs supporting explanatory text. * * @example * ```tsx * Heads up * ``` * * @see {@link AlertDescription} * @see {@link https://base-ui.com/react/overview Base UI documentation} */ declare const AlertTitle: React.ForwardRefExoticComponent>; /** * Represents the configurable props for the AlertDescription component. * * @remarks * Extends native `
` attributes so rich supporting content can be rendered inside * an alert body while preserving the component's spacing and typography. */ interface AlertDescriptionProps extends React.HTMLAttributes { /** * Additional CSS classes merged with the alert description styles. */ className?: string; } /** * A supporting content slot for additional alert details. * * @remarks * **Rendering Context**: Server- and client-compatible presentational component. * * Renders a styled `
` so the alert body can contain paragraphs, lists, links, * or other rich inline content beneath the title. * * @example * ```tsx * API access will be restored after the billing issue is resolved. * ``` * * @see {@link AlertTitle} * @see {@link https://base-ui.com/react/overview Base UI documentation} */ declare const AlertDescription: React.ForwardRefExoticComponent>; export { Alert, AlertDescription, AlertTitle }; //# sourceMappingURL=alert.d.ts.map