import { StatusType } from 'grommet'; import { Dispatch } from 'react'; declare type Toast = { namespace: string; title: string | undefined | null; message: string; status?: StatusType; timeout?: number; }; declare type ToastAction = { type: 'toast'; toast: Toast | undefined; }; declare type ToastFunction = (toast: Toast) => void; interface MessageToastProps { dispatch: Dispatch; msg: Toast; } declare const MessageToast: ({ dispatch, msg }: MessageToastProps) => JSX.Element; export { MessageToast, Toast, ToastAction, ToastFunction };