@spaced-out/ui-design-system
Version:
Sense UI components library
23 lines • 851 B
TypeScript
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