import { MonoTypeOperatorFunction, Observable } from 'rxjs'; import { BuildGraph } from './build-graph'; /** * A transformation applied over the build graph. * * By design, a pipeable operator over `BuildGraph`. * - A transformation takes a `BuildGraph` as input (from previous transformations). * - A transformation performs some operations based on the graph's data, potentially modifying nodes in the graph. * - It returns a `BuildGraph` that will be passed to subsequent transformations. * * @link https://github.com/ReactiveX/rxjs/blob/master/doc/pipeable-operators.md#pipeable-operators */ export interface Transform extends MonoTypeOperatorFunction { (source$: Observable): Observable; } export interface PromiseBasedTransform { (graph: BuildGraph): Promise | BuildGraph | void; } export declare const transformFromPromise: (transformFn: PromiseBasedTransform) => Transform;