/** * Global toast API - can be imported directly like Sonner * import { toast } from 'vyrn'; */ import React from 'react'; import { ToastProps } from '../types'; type ToastFunction = { (content: React.ReactNode, options?: Partial>): string; success: (content: React.ReactNode, options?: Partial>) => string; error: (content: React.ReactNode, options?: Partial>) => string; info: (content: React.ReactNode, options?: Partial>) => string; warning: (content: React.ReactNode, options?: Partial>) => string; default: (content: React.ReactNode, options?: Partial>) => string; custom: (content: React.ReactNode, options?: Partial>) => string; promise: (promise: Promise | (() => Promise), options: { loading?: React.ReactNode; success?: React.ReactNode | ((data: T) => React.ReactNode); error?: React.ReactNode | ((error: any) => React.ReactNode); description?: React.ReactNode; duration?: number; onSuccess?: (data: T) => void; onError?: (error: any) => void; cancel?: { label: string; onClick?: () => void; }; }) => string; loading: (content: React.ReactNode, options?: Partial>) => string; dismiss: (id: string) => void; update: (id: string, updates: Partial>) => void; clearAll: () => void; }; export declare const toast: ToastFunction; export {};