import { NotificationInstance } from 'rc-notification/lib/Notification';
import { ToastContainerProps } from './ToastContainer';
import './style/toastOnTarget.css';
export declare type ToastOnTargetOpts = Omit<ToastContainerProps, 'type'> & {
    duration?: number;
};
export declare type ToastOnTargetMethod = (message: string | ToastOnTargetOpts) => {
    id: number;
};
export declare type ToastOnTargetInterface = {
    notification: NotificationInstance;
    success: ToastOnTargetMethod;
    warning: ToastOnTargetMethod;
    info: ToastOnTargetMethod;
    error: ToastOnTargetMethod;
};
declare const toastOnTarget: (getContainer?: () => HTMLElement, prefix?: string) => ToastOnTargetInterface;
export default toastOnTarget;
