import React from 'react'; import { SlideAnimated } from '../Common/Animation'; import { stnr } from '../../interface'; export declare type placeType = 'top' | 'center' | 'bottom'; export declare type statusType = 'success' | 'fail' | 'warning' | 'normal'; export declare type animationType = 'fade' | 'slide'; export declare const width: number, height: number; export interface BaseProps { text: string; x?: stnr; y?: stnr; place: placeType; status: statusType; delay: number; animation: animationType; onAnimationEnd: () => void; } interface TotalProps extends BaseProps { onLayout: (e: any) => void; } export declare class Toast extends React.PureComponent { fade: SlideAnimated; animationTime: number; timer: number; constructor(props: TotalProps); computeStyle(): { type: string; color: string; backgroundColor: string; }; beginAnimation(): void; componentDidMount(): void; componentWillUnmount(): void; render(): JSX.Element; } export {};