import type AGUIToast from '../components/toast/AGUIToast.vue' import { ref } from 'vue' export const toastRef = ref>() export const AGUIToastRef = toastRef export interface ToastOptions { title: string description?: string duration?: number type?: 'info' | 'success' | 'warning' | 'error' | 'default' } export function Toast(options: ToastOptions) { toastRef.value?.add(options) }