import React from 'react'; export declare type ToastType = 'info' | 'success' | 'warning' | 'error'; export interface ToastProps { content: React.ReactNode; type?: ToastType; duration?: number; mountNode?: Element; className?: string; style?: React.CSSProperties; } export interface ToastState { visible: boolean; } export default class Toast extends React.Component { static defaultProps: ToastProps; state: ToastState; toastRoot: HTMLElement | null; componentDidMount(): void; handleEntered: () => void; handleExited: () => void; getToastRoot(): HTMLElement; render(): React.ReactPortal; }