import * as _lucca_front_ng_toast from '@lucca-front/ng/toast'; import * as rxjs from 'rxjs'; import { Observable, BehaviorSubject } from 'rxjs'; import * as i0 from '@angular/core'; import { InjectionToken } from '@angular/core'; import { PortalContent, LuTranslation } from '@lucca-front/ng/core'; type LuToastType = 'Info' | 'Error' | 'Success' | 'Warning'; declare const defaultToastDuration = 5000; interface LuToastInput { /** * InnerHTML supported. */ message: PortalContent; /** * Bold title. * InnerHTML not supported. */ title?: string; type?: LuToastType; /** * Auto kill default duration is 5000ms. * Null means manual dismiss only. */ duration?: number | null; } interface LuToast extends LuToastInput { id: string; } declare class LuToastsComponent { #private; readonly bottom: i0.InputSignal; readonly sources: i0.InputSignal[]>; constructor(); readonly toasts$: rxjs.BehaviorSubject; readonly intl: i0.InputSignalWithTransform<_lucca_front_ng_toast.ILuToastLabel, Partial<_lucca_front_ng_toast.ILuToastLabel>>; readonly iconClassByToastType: Record; readonly paletteClassByToastType: Record; isStringPortalContent(message: PortalContent): message is string; removeToast(toast: LuToast): void; isOnlyDismissibleManually(toast: LuToast): boolean; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * @deprecated use `LuToastsComponent` instead */ declare class LuToastsModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } declare class LuToastsService { toasts$: BehaviorSubject; addToast(toastInput: LuToastInput): LuToast; removeToast(toast: LuToast): void; isOnlyDismissibleManually({ duration }: LuToastInput): boolean; private getToast; private generateId; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } declare const LU_TOAST_TRANSLATIONS: InjectionToken>; interface ILuToastLabel { close: string; } declare const luToastTranslations: LuTranslation; export { LU_TOAST_TRANSLATIONS, LuToastsComponent, LuToastsModule, LuToastsService, defaultToastDuration, luToastTranslations }; export type { ILuToastLabel, LuToast, LuToastInput, LuToastType };