import type { ToastOptions, ValueOrFunction, Renderable, Toast } from 'react-hot-toast'; export type ToastMessage = ValueOrFunction; export type ToastEventPayload = { action: 'show'; variant: 'default' | 'success' | 'error' | 'loading' | 'custom'; message: ToastMessage; options?: ToastOptions; } | { variant: 'dismiss'; action: 'dismiss'; toastId?: string; } | { variant: 'remove'; action: 'remove'; toastId?: string; };