import { AnimationEvent } from '@angular/animations'; import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, DomPortal, TemplatePortal } from '@angular/cdk/portal'; import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, NgZone, OnDestroy } from '@angular/core'; import { Observable, Subject } from 'rxjs'; import { SbbNotificationToastConfig } from './notification-toast-config'; export declare class SbbNotificationToastContainer extends BasePortalOutlet implements OnDestroy { private _ngZone; private _elementRef; private _changeDetectorRef; config: SbbNotificationToastConfig; private _destroyed; /** The portal outlet inside of this container into which the notification toast content will be loaded. */ _portalOutlet: CdkPortalOutlet; /** Subject for notifying that the notification toast has exited from view. */ readonly _onExit: Subject; /** Subject for notifying that the notification toast has finished entering the view. */ readonly _onEnter: Subject; /** The state of the notification toast animations. */ _animationState: string; /** ARIA role for the notification toast container. */ _role: 'alert' | 'status' | null; get _svgIcon(): "kom:tick-small" | "kom:sign-exclamation-point-small" | "kom:circle-information-small"; constructor(_ngZone: NgZone, _elementRef: ElementRef, _changeDetectorRef: ChangeDetectorRef, config: SbbNotificationToastConfig); /** Attach a component portal as content to this notification toast container. */ attachComponentPortal(portal: ComponentPortal): ComponentRef; /** Attach a template portal as content to this notification toast container. */ attachTemplatePortal(portal: TemplatePortal): EmbeddedViewRef; /** * Attaches a DOM portal to the notification toast container. * @deprecated To be turned into a method. * @breaking-change 10.0.0 */ attachDomPortal: (portal: DomPortal) => void; /** Handle end of animations, updating the state of the notification toast. */ onAnimationEnd(event: AnimationEvent): void; /** Begin animation of notification toast entrance into view. */ enter(): void; /** Begin animation of the notification toast exiting from view. */ exit(): Observable; /** Makes sure the exit callbacks have been invoked when the element is destroyed. */ ngOnDestroy(): void; /** * Waits for the zone to settle before removing the element. Helps prevent * errors where we end up removing an element which is in the middle of an animation. */ private _completeExit; /** Applies the various positioning and user-configured CSS classes to the notification toast. */ private _applyNotificationClasses; /** Asserts that no content is already attached to the container. */ private _assertNotAttached; }