import React, { PropsWithChildren } from 'react'; export * from './AlertProvider'; export declare enum AlertTypes { RELATIVE = "relative", TOAST = "toast", BANNER = "banner" } export declare enum AlertVariant { CRITICAL = "critical", INFORMATIVE = "informative", SUCCESS = "success", WARNING = "warning" } export type BaseAlertProps = PropsWithChildren<{ /** * The title of the component. */ title?: string; /** * The variant to use. Defaults to 'success'. * @defaultValue 'success' */ variant?: AlertVariant; /** * The variant to use. Defaults to 'relative'. * @defaultValue 'relative' */ type?: AlertTypes; /** * Show / Hide close button. Defaults to true. * @defaultValue true */ showCloseButton?: boolean; /** * Close button title. Defaults to 'Close'. * @defaultValue 'Close' */ closeButtonTitle?: string; /** * Show / Hide Alert. Defaults to true. * @defaultValue true */ isOpen?: boolean; /** * Show alert delay (in milliseconds). Defaults to 6000. * @defaultValue 6000 */ delay?: number; /** * Stack index. Defaults to 0. * @defaultValue 0 */ stackIndex?: number; }>; type TypeProps = { type: AlertTypes.TOAST; delay?: number; showCloseButton: boolean; onClose: () => void; } | { type: AlertTypes.RELATIVE | AlertTypes.BANNER; showCloseButton: boolean; onClose?: () => void; } | { type?: AlertTypes.RELATIVE | AlertTypes.BANNER; onClose?: () => void; }; export type AlertProps = BaseAlertProps & TypeProps & React.HTMLAttributes; export default function Alert({ children, closeButtonTitle, delay, isOpen, stackIndex, onClose, showCloseButton, title, type, variant, ...other }: AlertProps): React.ReactElement | null; //# sourceMappingURL=Alert.d.ts.map