export type ToastType = 'success' | 'info' | 'warning' | 'error'; export type ToastCloseReason = 'auto' | 'manual' | 'programmatic' | 'clear'; export type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'; export interface ToastOptions { message: string; type?: ToastType; duration?: number; closable?: boolean; id?: string; heading?: string; target?: Element; container?: HTMLElement; } export interface ToastInstanceOptions extends ToastOptions { position?: ToastPosition; } export interface ToastMessageUpdateOptions { message: string; heading?: string; }