UNPKG

@spaced-out/ui-design-system

Version:
23 lines 839 B
import type { callbackFuncTypes, contentTypes, ToastOptions } from '../../types/toast'; export declare const POSITIONS: { readonly TOP_CENTER: "topCenter"; readonly TOP_LEFT: "topLeft"; readonly TOP_RIGHT: "topRight"; readonly BOTTOM_LEFT: "bottomLeft"; readonly BOTTOM_RIGHT: "bottomRight"; readonly BOTTOM_CENTER: "bottomCenter"; }; export declare const ACTIONS: { readonly ADD: "ADD"; readonly REMOVE: "REMOVE"; }; export declare const toastManager: { add(content: contentTypes, options?: ToastOptions): string; remove(id: string): boolean; subscribe(callback: callbackFuncTypes): void; }; export declare const toastApi: { readonly show: (content: contentTypes, options?: ToastOptions) => string; readonly remove: (id: string) => boolean; }; //# sourceMappingURL=ToastManager.d.ts.map