import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, OnInit } from '@angular/core'; /** * alert 支持类型 * - success 成功消息 * - info 信息消息 * - warning 警告消息 * - danger 错误/失败消息 */ export declare type AlertType = 'success' | 'info' | 'warning' | 'danger'; /** * alert 支持模式 * - message 消息模式 * - notification 通知模式 * - banner 顶栏模式 */ /** 用于配置sim-alert默认 */ export interface SimAlertDefaultOptions { messageIcon?: { danger: string; info: string; success: string; warning: string; }; notificationIcon?: { danger: string; info: string; success: string; warning: string; }; showIcon?: boolean; type?: AlertType; } export declare const SIM_ALERT_CONFIG: InjectionToken; export declare class SimAlertComponent implements OnInit, AfterContentInit { private changeDetection; closeText: string; type: AlertType; /** 是否有关闭按钮出现,可以绑定(closed)事件 */ dismissible: boolean; /** 是否显示icon 并自定义icon 默认使用配置icon */ showIcon: boolean; /** 自定义icon图标 配合使用 */ icon: string; /** 持续时间(毫秒),当设置为 0 时不消失 */ duration: number; /** 是否顶栏模式 */ banner: boolean; /** 是否通知模式 */ notification: boolean; /** alert被关闭时发出事件 */ closed: EventEmitter; /** 获取sim-alert-icon */ _icon: SimAlertIconDirective; /** 获取sim-alert-actions */ _actions: SimAlertActionsDirective; /** 获取sim-alert-heading */ _heading: SimAlertHeadingDirective; /** 获取sim-alert-icon */ _close: SimAlertCloseDirective; /** 是否初始可见 */ _visible: boolean; _inferredIconType: { danger: string; info: string; success: string; warning: string; }; private _messageIcon; private _notificationIcon; constructor(changeDetection: ChangeDetectorRef, defaultOptions?: SimAlertDefaultOptions); ngOnInit(): void; ngAfterContentInit(): void; onClose(): void; onFadeAnimationDone(): void; } export declare class SimAlertIconDirective { } export declare class SimAlertHeadingDirective { } export declare class SimAlertActionsDirective { } export declare class SimAlertCloseDirective { protected _parent: SimAlertComponent; constructor(_parent: SimAlertComponent, elementRef?: ElementRef); _handleClick(event: Event): void; }