import { ReactNode, ForwardRefExoticComponent, PropsWithoutRef, RefAttributes } from 'react'; import { PopupProps } from '../popup'; export interface NotifyProps extends Omit { type?: 'primary' | 'success' | 'warning' | 'error'; message?: ReactNode; duration?: number; color?: string; background?: string; onTimeout?: (visible: false) => void; visible?: boolean; defaultVisible?: boolean; onVisible?: (visible: boolean) => void; placement?: 'top' | 'bottom'; popupProps?: PopupProps; } export interface NotifyRef { cancelHide: () => void; hideLater: () => void; } export type NotifyFC = ForwardRefExoticComponent & RefAttributes>; export declare const Notify: NotifyFC; export default Notify;