/// import { IComponentController } from 'angular'; import ClipboardService from './clipboard.service'; export declare type FeedbackType = 'success' | 'danger' | 'info' | 'warning'; export interface FeedbackOptions { autoCopyContents?: string; clipboardContents?: string; copyLinkText?: string; copySuccessMessage?: string; manualClose?: boolean; trustAsHtml?: boolean; type?: FeedbackType; } export interface FeedbackAlert { clipboardContents?: string; copyLinkText?: string; copySuccessMessage?: string; message?: string; trustAsHtml: boolean; type: FeedbackType; } export default class FeedbackManager implements IComponentController { private $interval; private $rootScope; private $sce; private $timeout; private clipboardService; protected alerts: FeedbackAlert[]; private timer; constructor($interval: ng.IIntervalService, $rootScope: ng.IRootScopeService, $sce: ng.ISCEService, $timeout: ng.ITimeoutService, clipboardService: ClipboardService); $onInit(): void; $onDestroy(): void; protected closeAlert(): void; private handleFeedbackClick; private addAlert; private removeTimer; }