import { OverlayRef } from '@angular/cdk/overlay'; import { TypeRef } from '@sbb-esta/angular-core/common-behaviors'; import { Observable } from 'rxjs'; import type { SbbNotificationToastContainer } from './notification-toast-container.component'; /** Reference to a notification toast dispatched from the notification toast service. */ export declare class SbbNotificationToastRef { private _overlayRef; /** The instance of the component making up the content of the notification toast. */ instance: T; /** * The instance of the component making up the content of the notification toast. * @docs-private */ containerInstance: SbbNotificationToastContainer; /** Subject for notifying the user that the notification toast has been dismissed. */ private readonly _afterDismissed; /** Subject for notifying the user that the notification toast has opened and appeared. */ private readonly _afterOpened; /** * Timeout ID for the duration setTimeout call. Used to clear the timeout if the notification toast is * dismissed before the duration passes. */ private _durationTimeoutId; constructor(containerInstance: TypeRef, _overlayRef: OverlayRef); /** Dismisses the notification toast. */ dismiss(): void; /** Dismisses the notification toast after some duration */ _dismissAfter(duration: number): void; /** Marks the notification toast as opened */ _open(): void; /** Cleans up the DOM after closing. */ private _finishDismiss; /** Gets an observable that is notified when the notification toast is finished closing. */ afterDismissed(): Observable; /** Gets an observable that is notified when the notification toast has opened and appeared. */ afterOpened(): Observable; }