UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

16 lines (15 loc) 565 B
import type { InternalToastProps, ToastProps } from "./types.js"; export declare class Toaster { /** We were tried to notify about toaster changes, but no one were listened */ private hasUndelivered; private toasts; private eventEmitter; destroy(): void; add(toast: ToastProps): void; remove(name: string): void; removeAll(): void; update(name: string, overrideOptions: Partial<ToastProps>): void; has(name: string): boolean; subscribe(listener: (toasts: InternalToastProps[]) => void): () => void; private notify; }