import * as React from 'react'; import type { PolymorphicForwardRefComponent } from '../../utils/index.js'; type AlertOwnProps = { /** * Type of the alert. * @default 'informational' */ type?: 'positive' | 'warning' | 'negative' | 'informational'; /** * Stick the alert to the top. * @default false */ isSticky?: boolean; }; type AlertLegacyProps = { /** @deprecated Use `Alert.Action` subcomponent. */ clickableText?: React.ReactNode; /** @deprecated Use `Alert.Action` subcomponent. */ clickableTextProps?: React.ComponentPropsWithoutRef<'a'>; /** @deprecated Use `Alert.CloseButton` subcomponent. */ onClose?: () => void; }; /** * A small box to quickly grab user attention and communicate a brief message * @example * This is an alert. * @example * * * This is an informational alert. * {}} /> * * @example * * * * * * This is an alert. * This is clickable text. * * {}}> * * * */ export declare const Alert: PolymorphicForwardRefComponent<"div", AlertOwnProps & AlertLegacyProps> & { /** * Alert wrapper subcomponent */ Wrapper: PolymorphicForwardRefComponent<"div", AlertOwnProps>; /** * Alert icon subcomponent */ Icon: PolymorphicForwardRefComponent<"span", Omit, HTMLSpanElement>, "fill" | "as" | "key" | "size" | keyof React.HTMLAttributes | "padded"> & { size?: "auto" | "small" | "medium" | "large" | import("../../utils/types.js").AnyString; fill?: "default" | "positive" | "informational" | "negative" | "warning" | import("../../utils/types.js").AnyString; padded?: boolean; } & Omit, HTMLSpanElement>, "ref"> & { as?: "span" | undefined; }>; /** * Alert message subcomponent */ Message: PolymorphicForwardRefComponent<"span", {}>; /** * Alert action subcomponent for the link you want to provide. */ Action: PolymorphicForwardRefComponent<"a", {}>; /** * Alert close button subcomponent */ CloseButton: PolymorphicForwardRefComponent<"button", {}>; }; export {};