import { Observable } from '../Observable';
import { Notification } from '../Notification';
import { dematerialize as higherOrder } from '../operators/dematerialize';
/**
* Converts an Observable of {@link Notification} objects into the emissions
* that they represent.
*
* Unwraps {@link Notification} objects as actual `next`,
* `error` and `complete` emissions. The opposite of {@link materialize}.
*
*
*
* `dematerialize` is assumed to operate an Observable that only emits
* {@link Notification} objects as `next` emissions, and does not emit any
* `error`. Such Observable is the output of a `materialize` operation. Those
* notifications are then unwrapped using the metadata they contain, and emitted
* as `next`, `error`, and `complete` on the output Observable.
*
* Use this operator in conjunction with {@link materialize}.
*
* @example