export type ToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right'; export type ToastType = 'default' | 'success' | 'error' | 'warning' | 'info'; export interface ToastData { id: string; message: string; type: ToastType; duration: number; description?: string; action?: { label: string; onClick: () => void; }; } /** * Toaster component that manages and displays toast notifications. * Place this component once in your app layout. * * @example * * * // Trigger toasts via custom events: * document.dispatchEvent(new CustomEvent('seki-toast', { * detail: { message: 'Hello!', type: 'success' } * })); */ export declare class SekiToaster { el: HTMLElement; /** * Position of the toast container * @default 'bottom-right' */ position: ToastPosition; /** * Default duration in milliseconds before auto-dismiss * @default 4000 */ duration: number; /** * Maximum number of visible toasts * @default 5 */ maxToasts: number; toasts: ToastData[]; private timers; handleToastEvent(event: CustomEvent & { message: string; }>): void; private generateId; private addToast; private removeToast; private handleMouseEnter; private handleMouseLeave; private handleDismiss; private handleActionClick; connectedCallback(): void; disconnectedCallback(): void; private startTimer; render(): any; private renderIcon; }