import { AfterViewInit, ChangeDetectorRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core'; import { VdlPopover } from 'vdl-angular/popover'; import { GlobalNotification } from './global-notification.interface'; /** * Global notifiaction footer container */ export declare class VdlGlobalNotificationFooter { } /** * VDL global notification */ export declare class VdlGlobalNotification implements OnChanges, AfterViewInit { private changeDetector; /** @docs-private */ globalNotificationPopover: VdlPopover; /** * Timer for bell animation, used for clearing timeout. * @docs-private */ animationTimer: any; /** * Whether the animation is currently playing. * @docs-private */ animationPlaying: boolean; /** * Triggers bell animation when value is changed to true. * @docs-private */ playBellAnimation: boolean; /** * Triggers badge animation when value is changed to true. * @docs-private */ playBadgeAnimation: boolean; /** * Number of notifications added within the animationCooldown that can trigger the bell animation. * Defaults to 1. */ maxAnimations: number; /** * Cooldown period in milliseconds before the next set of maxAnimations animations can play again. * Defaults to 15000. */ animationCooldown: number; /** As part of i18n work, we may want to expose this. e.g. allow for it to say what the previous link is */ ariaLabel: string; /** Number to put inside a badge that will be placed in the top right of the global notification. */ badgeCount: number; /** Text that goes under the main message. */ description: string; /** * Default english message provided when `notifications` are empty. * This should be used to override the default message for i8ln. */ emptyMessage: string; /** Array of `GlobalNotification` interface. */ notifications: Array; /** * White circle is placed inside the red instead of a number. * Defaults to false. */ indeterminate: boolean; /** * Text that is put on the right side of the header. * Should be used to show the unread message count and total message count. * EX: * 4 unread / 4 total */ secondaryTitle: string; /** * Text that is put on the left side of the header. * By default this is set to `Notifications`. * Use this to override the default for i8ln purposes. */ title: string; /** * Emits when a notification is clicked. * Returns the notification that was clicked as the `$event`. */ notificationClicked: EventEmitter<{}>; /** * Emits when a notification message is clicked. * Returns the notification that was clicked as the `$event`. */ notificationMessageClicked: EventEmitter<{}>; constructor(changeDetector: ChangeDetectorRef); /** * Plays the bell and badge animations once the page is initialized. */ ngAfterViewInit(): void; /** @docs-private */ onItemClick(notification: GlobalNotification): void; /** @docs-private */ onMessageClick(notification: GlobalNotification): void; /** @docs-private */ getStatusIcon(status: string): { id: string; icon: string; backgroundIcon?: undefined; } | { id: string; icon: string; backgroundIcon: string; }; /** * Closes the global notification popover. */ close(): void; /** * Returns the badgeCount, or '99+' if the badgeCount is greater than 99. */ getBadgeCount(): number | "99+"; /** * Plays the bell and badge animations when called. */ playAnimation(): void; /** * Plays the bell and badge animations only when badgeCount increases. */ ngOnChanges(changes: SimpleChanges): void; }