/** * Copyright Daytona Platforms Inc. * SPDX-License-Identifier: Apache-2.0 */ /** * Global toast notification singleton * Queues toasts to prevent showing multiple at the same time */ type ToastVariant = 'success' | 'error' | 'warning' | 'info'; interface ToastOptions { title: string; message: string; variant?: ToastVariant; } interface TuiShowToast { showToast: (options: { body: { title: string; message: string; variant: ToastVariant; }; }) => void; } declare class ToastManager { private tui; private queue; private isShowing; /** * Initialize the toast manager with the TUI instance */ initialize(tui: TuiShowToast | null | undefined): void; /** * Show a toast notification * If a toast is currently showing, this will be queued */ show(options: ToastOptions): void; /** * Process the toast queue, showing one toast at a time */ private processQueue; /** * Clear all pending toasts */ clear(): void; } export declare const toast: ToastManager; export {};