import { BaseObservableValue } from "./index";
export declare class FlatMapObservableValue
extends BaseObservableValue {
private readonly source;
private readonly mapper;
private sourceSubscription?;
private targetSubscription?;
constructor(source: BaseObservableValue, mapper: (value: P) => (BaseObservableValue | undefined));
onUnsubscribeLast(): void;
onSubscribeFirst(): void;
private updateTargetSubscription;
get(): C | undefined;
}
export declare function tests(): {
"flatMap.get": (assert: any) => void;
"flatMap update from source": (assert: any) => void;
"flatMap update from target": (assert: any) => void;
};