amis
Version:
一种MIS页面生成工具
377 lines • 71.4 kB
TypeScript
/**
* @file Toast
* @description toast提示组件, 单例模式,App级别只需要一个ToastComponent,引入了多个会兼容,也只有第一个生效
* @author fex
*/
/// <reference types="hoist-non-react-statics" />
import React from 'react';
import { ClassNamesFn, ThemeProps } from '../theme';
import { LocaleProps, TranslateFn } from '../locale';
interface Config {
closeButton?: boolean;
timeout?: number;
}
interface ToastComponentProps extends ThemeProps, LocaleProps {
position: 'top-right' | 'top-center' | 'top-left' | 'bottom-center' | 'bottom-left' | 'bottom-right';
closeButton: boolean;
showIcon?: boolean;
timeout: number;
className?: string;
}
interface Item extends Config {
title?: string;
body: string;
level: 'info' | 'success' | 'error' | 'warning';
id: string;
onDissmiss?: () => void;
position?: 'top-right' | 'top-center' | 'top-left' | 'bottom-center' | 'bottom-left' | 'bottom-right';
}
interface ToastComponentState {
items: Array<Item>;
}
export declare class ToastComponent extends React.Component<ToastComponentProps, ToastComponentState> {
static defaultProps: Pick<ToastComponentProps, 'position' | 'closeButton' | 'timeout'>;
static themeKey: string;
hasRendered: boolean;
state: ToastComponentState;
componentDidMount(): void;
componentWillUnmount(): void;
notifiy(level: string, content: string, title?: string, config?: any): void;
success(content: string, title?: string, config?: any): void;
error(content: string, title?: string, config?: any): void;
info(content: string, title?: string, config?: any): void;
warning(content: string, title?: string, config?: any): void;
handleDismissed(index: number): void;
render(): JSX.Element[] | null;
}
declare const _default: {
new (props: (Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps) | Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>): {
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
new (props: Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps, context: any): {
render(): JSX.Element;
context: any;
setState<K extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>) => {} | Pick<{}, K> | null) | Pick<{}, K> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, "position" | "locale" | "translate" | "timeout" | "closeButton" | "showIcon"> & import("../theme").ThemeOutterProps>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context<string>;
ComposedComponent: {
new (props: (Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}) | Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>): {
render(): JSX.Element;
context: any;
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
new (props: Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, context: any): {
render(): JSX.Element;
context: any;
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
displayName: string;
contextType: React.Context<string>;
ComposedComponent: typeof ToastComponent;
} & import("hoist-non-react-statics").NonReactStatics<typeof ToastComponent, {}> & {
ComposedComponent: typeof ToastComponent;
};
} & import("hoist-non-react-statics").NonReactStatics<{
new (props: (Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}) | Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>): {
render(): JSX.Element;
context: any;
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>, snapshot?: any): void;
componentWillMount?(): void;
UNSAFE_componentWillMount?(): void;
componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
UNSAFE_componentWillReceiveProps?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextContext: any): void;
componentWillUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
UNSAFE_componentWillUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): void;
};
new (props: Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}, context: any): {
render(): JSX.Element;
context: any;
setState<K_1 extends never>(state: {} | ((prevState: Readonly<{}>, props: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>) => {} | Pick<{}, K_1> | null) | Pick<{}, K_1> | null, callback?: (() => void) | undefined): void;
forceUpdate(callback?: (() => void) | undefined): void;
readonly props: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}> & Readonly<{
children?: React.ReactNode;
}>;
state: Readonly<{}>;
refs: {
[key: string]: React.ReactInstance;
};
componentDidMount?(): void;
shouldComponentUpdate?(nextProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, nextState: Readonly<{}>, nextContext: any): boolean;
componentWillUnmount?(): void;
componentDidCatch?(error: Error, errorInfo: React.ErrorInfo): void;
getSnapshotBeforeUpdate?(prevProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}>): any;
componentDidUpdate?(prevProps: Readonly<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "classPrefix" | "className" | "classnames" | "theme" | "showIcon"> & Partial<Pick<Pick<ToastComponentProps, "classPrefix" | "className" | "classnames" | "theme" | "position" | "timeout" | "closeButton" | "showIcon">, "position" | "timeout" | "closeButton">> & Partial<Pick<Pick<ToastComponentProps, "position" | "timeout" | "closeButton">, never>> & {
locale?: string | undefined;
translate?: ((str: string, ...args: any[]) => string) | undefined;
}>, prevState: Readonly<{}