import React from 'react'; import { IconProps } from '../../Icons'; declare type alertTypesOptions = 'success' | 'warning' | 'danger' | 'info' | 'primary'; declare const alertTypes: Record; export declare const Alert: React.MemoExoticComponent<({ type, isOpen, title, subtitle, actions, showClose, onClose, hideIcon, }: AlertProps) => JSX.Element | null>; export interface AlertProps { /** Alert color * @default info * */ type?: keyof typeof alertTypes; /** Alert is visible * @default true */ isOpen?: boolean; /** * Alert main text */ title: string | React.ReactNode; /** * Alert text below title */ subtitle?: string | React.ReactNode; /** * Function to close alert (also activate `showClose`) */ onClose?: () => void; /** Show button close * @default false */ showClose?: boolean; /** Hide alert icon * @default false */ hideIcon?: boolean; /** * Action for the alert, like button and hiperlinks * */ actions?: React.ReactNode; } export {};