/** * @license * Copyright Alibaba.com All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE */ import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core'; import { NotificationConfig, NzConfigService } from 'ng-zorro-antd/core/config'; import { Subject } from 'rxjs'; import { NzNotificationDataFilled, NzNotificationDataOptions } from './typings'; export declare class NzNotificationContainerComponent implements OnInit, OnDestroy { protected cdr: ChangeDetectorRef; protected nzConfigService: NzConfigService; config: Required; bottom: string | null; messages: Array>; constructor(cdr: ChangeDetectorRef, nzConfigService: NzConfigService); get topLeftMessages(): Array>; get topRightMessages(): Array>; get bottomLeftMessages(): Array>; get bottomRightMessages(): Array>; /** * Create a new notification. * If there's a notification whose `nzKey` is same with `nzKey` in `NzNotificationDataFilled`, * replace its content instead of create a new one. * @override * @param notification */ createMessage(notification: NzNotificationDataFilled): void; protected updateConfig(): void; protected subscribeConfigChange(): void; private replaceNotification; destroy$: Subject; top: string | null; ngOnInit(): void; ngOnDestroy(): void; /** * Remove a message by `messageId`. * @param messageId Id of the message to be removed. * @param userAction Whether this is closed by user interaction. */ removeMessage(messageId: string, userAction?: boolean): void; /** * Remove all messages. */ removeMessageAll(): void; /** * Merge default options and custom message options * @param options */ protected mergeMessageOptions(options?: NzNotificationDataOptions): NzNotificationDataOptions; }