import React from 'react'; import { MotionProps } from 'framer-motion'; import { LinkInterface } from '../../elements/Link/interface'; import { DefaultFlexInterface } from '../Flex'; export declare type NotificationTypes = 'block' | 'page'; export declare type NotificationVariants = 'primary' | 'success' | 'warning' | 'danger'; export declare type NotificationPagePositionTypes = 'top' | 'bottom'; export declare type NotificationInterface = { title?: string; message?: React.ReactNode | ((p: { close: () => void; }) => React.ReactNode); type?: NotificationTypes; icon?: React.ReactNode; variant?: NotificationVariants; visible?: boolean; pagePosition?: NotificationPagePositionTypes; onDismiss?: () => void; autoClose?: number; closable?: boolean; link?: { text: LinkInterface['text']; href?: LinkInterface['href']; to?: LinkInterface['to']; }; action?: React.ReactNode | ((p: { close: () => void; }) => React.ReactNode); } & MotionProps & DefaultFlexInterface; export declare type NotificationType = { id: string; } & NotificationInterface; export declare type Action = { payload: NotificationType; type: 'ADD' | 'REMOVE'; };