import React from 'react'; import { ToastContent, ToastOptions } from 'react-toastify'; export declare type CTA = React.ReactNode; /** * This is a function, not a React component. * * Use dot notation to get semantic styling (toast.success() and toast.error()). * Otherwise, toast will use neutral default styling with an info icon instead. * * @param {ToastContent} content React.ReactNode - The message of a toast. Avoid * inline CTAs if possible. * @param {CTA} cta? React.ReactNode - Use to pass an optional button or link * with a callback which will be automatically styled and positioned. * @param {ToastOptions} toastifyOptions? ToastOptions - Properties will * override our individual defaults. * https://fkhadra.github.io/react-toastify/api/toast * * @returns void */ export declare const toast: { (content: ToastContent, cta?: CTA, toastifyOptions?: ToastOptions): void; default: any; success: (content: ToastContent, cta?: CTA, toastifyOptions?: ToastOptions) => void; error: (content: ToastContent, cta?: CTA, toastifyOptions?: ToastOptions) => void; }; export declare const success: (content: ToastContent, cta?: CTA, toastifyOptions?: ToastOptions) => void; export declare const error: (content: ToastContent, cta?: CTA, toastifyOptions?: ToastOptions) => void; /** * Careful using this lil guy. It does not pass on a callback for a toast * instance, but rather ANY toast rendered. If you do need it, ensure that you * only invoke it once per unique callback, including rerendering. * */ export declare const globalToastsOnChange: (callback: import("react-toastify/dist/core").OnChangeCallback) => () => void;