import { Bloc, Transition } from '../bloc'; /** * An interface for observing the behavior of all `Bloc` instances. * * @export * @class BlocObserver */ export declare class BlocObserver { /** * Called whenever an `event` is added to any `bloc`. * * @param {Bloc} _bloc * @param {*} _event * @memberof BlocObserver */ onEvent(_bloc: Bloc, _event: any): void; /** * Called whenever a `transition` occurs in any `bloc`. * * @param {Bloc} _bloc * @param {Transition} _transition * @memberof BlocObserver */ onTransition(_bloc: Bloc, _transition: Transition): void; /** * Called whenever an `error` occurs in any `bloc`. * * @param {Bloc} _bloc * @param {*} _error * @memberof BlocObserver */ onError(_bloc: Bloc, _error: any): void; }