export type ToastColors = "info" | "warning" | "danger" | "success"; /** * Serializable toast which is used for sending through penpal */ export interface SimpleToast { id?: string; intent: ToastColors; title: string; description?: string; behavior?: "timed" | "persistent"; primaryAction?: string; secondaryAction?: string; link?: string; duration?: number; isLoading?: boolean; } export interface ToastRuntimeApi { addToast: (toast: SimpleToast) => Promise; removeToast: (id: string) => Promise; }