import { Overlay } from '@angular/cdk/overlay'; import { ComponentType } from '@angular/cdk/portal'; import { ApplicationRef, ComponentFactoryResolver, ComponentRef, ElementRef, Injector } from '@angular/core'; import { MessageWrapperComponent } from './message-wrapper.component'; import { MessageComponent } from './message.component'; import { MessageConfig, MessageGlobalConfig, MessageType } from './message.config'; export declare abstract class BaseMessage { protected overlay: Overlay; protected injector: Injector; protected applicationRef: ApplicationRef; protected cfr: ComponentFactoryResolver; protected overlayPaneClassName: string; protected wrapperClass: ComponentType; protected componentClass: ComponentType; protected globalConfig: MessageGlobalConfig; wrapperInstance: { elementRef: ElementRef; }; componentRefs: Array>; constructor(overlay: Overlay, injector: Injector, applicationRef: ApplicationRef, cfr: ComponentFactoryResolver, overlayPaneClassName: string, wrapperClass: ComponentType, componentClass: ComponentType, globalConfig: MessageGlobalConfig); create(config: Config): ComponentRef; create(config: MessageType, content: string): ComponentRef; createType(type: MessageType, option: Config | string): ComponentRef; success(option: Config | string): ComponentRef; warning(option: Config | string): ComponentRef; error(option: Config | string): ComponentRef; info(option: Config | string): ComponentRef; remove(id: number | string): void; removeAll(): void; protected initWrapperContainer(): void; protected initComponentRef(config: Config): ComponentRef; protected removeNeedless(id: number | string): void; }