UNPKG

claritykit-svelte

Version:

A comprehensive Svelte component library focused on accessibility, ADHD-optimized design, developer experience, and full SSR compatibility

17 lines 903 B
import type { ToastOptions, ToastManagerState } from './types.js'; declare class ToastManager { private state; private idCounter; subscribe: (this: void, run: import("svelte/store").Subscriber<ToastManagerState>, invalidate?: () => void) => import("svelte/store").Unsubscriber; add(options: ToastOptions): string; remove(id: string): void; clear(): void; success(message: string, options?: Omit<ToastOptions, 'type' | 'message'>): string; error(message: string, options?: Omit<ToastOptions, 'type' | 'message'>): string; warning(message: string, options?: Omit<ToastOptions, 'type' | 'message'>): string; info(message: string, options?: Omit<ToastOptions, 'type' | 'message'>): string; configure(config: Partial<Omit<ToastManagerState, 'toasts'>>): void; } export declare const toastManager: ToastManager; export {}; //# sourceMappingURL=ToastManager.d.ts.map