import React, { Component } from 'react'; import PropTypes from 'prop-types'; export declare type toastType = 'success' | 'error' | 'info' | 'loading'; export interface Props { container: HTMLElement; content: React.ReactNode; type: toastType; mask: boolean; duration: number; onClose: (...args: any[]) => any; } declare class ToastContent extends Component { static useIcons: (iconConfig: { [key: string]: React.ReactElement React.ReactElement React.Component)> | null) | (new (props: any) => React.Component)>; }) => void; static icons: { [key: string]: React.ReactElement; }; static propTypes: { container: PropTypes.Validator; type: PropTypes.Validator; content: PropTypes.Requireable; mask: PropTypes.Requireable; duration: PropTypes.Requireable; onClose: PropTypes.Requireable<(...args: any[]) => any>; }; static defaultProps: { mask: boolean; duration: number; onClose: () => void; }; timer?: any; isExecClose: boolean; state: { visible: boolean; }; get isLoading(): boolean; get isInfo(): boolean; componentDidMount(): void; componentWillUnmount(): void; renderIcon: () => JSX.Element | null; render(): JSX.Element; } export default ToastContent;