import type { CSSProperties, FC, ReactNode } from "react"; import type { IconComponentType } from "../../../Icons"; import type { ColorVariant } from "../../../types"; export type AlertContextType = "page" | "section"; export type AlertColorVariant = Exclude; export interface AlertProps { /** * Descriptive title for `Alert`. */ title?: ReactNode; /** * The variant of the `Alert`. * @default grey */ variant?: AlertColorVariant; /** * Usage context description. * @default section */ usageContext?: AlertContextType; /** * The icon of the `Alert`. */ icon?: IconComponentType; /** * Function triggered when the dismiss button is clicked. * Dismiss button won't be rendered if absent. */ onDismiss?(): void; /** * The content of the `Alert`. */ children: ReactNode; /** * The class name of the `Alert`. * @ignore */ className?: string; /** * The style of the `Alert`. * @ignore */ style?: CSSProperties; } /** * The `Alert` component give users suggestions, tips, warnings, and error information without stopping them from completing the tasks they're doing. * * See the [Alert documentation page](https://satellite.algolia.com/8261d6576/p/8239aa-banners/b/369673) for more information. */ export declare const Alert: FC;