/// import * as React from 'react'; import { Subscription } from 'rxjs'; import { Command, ObservableLike, Property } from '../../WebRx'; import { BaseViewModel } from './BaseViewModel'; /** * Binds an observable to a command on the view model */ export declare function bindObservableToCommand(viewModel: Readonly, observableLike: ObservableLike, commandSelector: (viewModel: Readonly) => Command, onNext?: (value: TInput) => void, onError?: (exception: any) => void, onCompleted?: () => void): Subscription; /** * Binds a DOM event to an observable property on the view model */ export declare function bindEventToProperty>(viewModel: Readonly, targetSelector: (viewModel: Readonly) => Property, valueSelector?: (eventKey: any, event: TEvent) => TValue): any; /** * Binds a DOM event to an observable command on the view model */ export declare function bindEventToCommand>(viewModel: Readonly, commandSelector: (viewModel: Readonly) => Command, paramSelector?: (eventKey: any, event: TEvent) => TParameter, conditionSelector?: (event: TEvent, eventKey: any) => boolean, onNext?: (value: TCommand) => void, onError?: (exception: any) => void, onCompleted?: () => void): any;