/** * 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 { TemplateRef } from '@angular/core'; import { Subject } from 'rxjs'; export type VtsMessageType = 'success' | 'info' | 'warning' | 'error' | 'loading'; export interface VtsMessageDataOptions { vtsDuration?: number; vtsAnimate?: boolean; vtsPauseOnHover?: boolean; } export interface VtsMessageData { type?: VtsMessageType | string; content?: string | TemplateRef; messageId?: string; createdAt?: Date; options?: VtsMessageDataOptions; state?: 'enter' | 'leave'; onClose?: Subject; } export type VtsMessageRef = Pick, 'onClose' | 'messageId'>;