UNPKG

@sixbell-telco/sdk

Version:

A collection of reusable components designed for use in Sixbell Telco Angular projects

33 lines (32 loc) 1.03 kB
import * as i0 from "@angular/core"; export declare enum ToastTypes { SUCCESS = "toast-success", ERROR = "toast-error", INFO = "toast-info", WARNING = "toast-warning" } export type Toast = { id: string; type: ToastTypes; message: string; title: string; duration: number; animate: 'enter' | 'leave'; }; export declare class ToastService { private toastsSignal; private expandedSignal; readonly toasts: import("@angular/core").Signal<Toast[]>; readonly expanded: import("@angular/core").Signal<boolean>; readonly isEmpty: import("@angular/core").Signal<boolean>; notify(type: ToastTypes, message: string, title?: string, duration?: number): void; scheduleDismiss(toast: Toast): void; animateRemoval(toast: Toast): void; remove(toast: Toast): void; clear(): void; toggle(): void; collapse(): void; expand(): void; static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>; }