import { GlobalMessage } from '@/components/common/GlobalMessage';
import { toast } from 'sonner';

declare global {
  interface Window {
    msg: GlobalMessage;
    $message: {
      success: (message: string, duration?: number) => void;
      error: (message: string, duration?: number) => void;
      warning: (message: string, duration?: number) => void;
      info: (message: string, duration?: number) => void;
      loading: (message: string) => ReturnType<typeof toast.promise>;
      dismiss: () => void;
    };
  }
}