import { OnDestroy } from "@angular/core";
import { Subscription } from "rxjs";
import { EventHandler, ErrorHandler, AppEvent, ErrorEvent } from "@hpe/angular-toolkit/model";
import { EventBusService } from "./eventbus-service";
export declare class AbstractSubscriber implements OnDestroy {
    private eventBusService;
    private subscriptions;
    constructor(eventBusService: EventBusService);
    ngOnDestroy(): void;
    protected subscribeToApp(eventCode: string, handler: EventHandler): Subscription;
    protected emitToApp(event: AppEvent): void;
    protected subscribeToError(handler: ErrorHandler): Subscription;
    protected emitToError(event: ErrorEvent): void;
}
