import * as React from 'react'; import * as PropTypes from 'prop-types'; import { Placement } from '../types'; import { LocalToastProps } from './Toast'; declare type Toast = LocalToastProps & { key?: string; message: string | React.ReactElement; }; declare type Actions = { remove: ({ key }: { key: Toast['key']; }) => void; }; declare type Effects = { add: (toast: Toast) => void; info: (toast: Toast) => void; success: (toast: Toast) => void; danger: (toast: Toast) => void; warning: (toast: Toast) => void; }; export declare type ToastContainerProps = { children: (props: Actions & Effects & { toasts: Array; }) => React.ReactNode; placement?: Placement; }; export declare const ToastContainer: React.FunctionComponent; export declare const toastContainerPropTypes: { children: PropTypes.Validator<(...args: any[]) => any>; placement: PropTypes.Validator; }; export declare const toastContainerDefaultProps: Partial; export default ToastContainer; export declare const withToasts: (C: React.ComponentType) => (props: any) => JSX.Element;