import { Observable } from "rxjs/Rx"; import { ReactiveObject } from "../reactive-object"; import { ReactiveCommand } from "../reactive-command"; /** * Creates a new cold observable that maps values observed from the source Observable to values resolved from a ReactiveCommand. * Essentially, this means that the command is executed whenever the source Observable resolves a new value, so long as the command is executable at the moment. * @param source The Observable that should be used as the trigger for the command. * @param obj The Reactive Object that the command exists on. * @param command The name of the property that holds the ReactiveCommand that should be subscribed to. * Alternatively, the actual command object that should be executed can be passed in. */ export declare function invokeCommand(source: Observable, obj: TObj, command: string | ReactiveCommand): Observable;