import { DependencyList } from 'react'; import { observerFunction } from './observable'; /** * Create a memoized observable with a map implemented and a distinctUntilChanged, * the observable will be unsubscribe automatically if component unmount * @returns [observableValue, error, isCompleted] */ export declare function useMappedObservable(observableGenerator: observerFunction, mapperFunction: (data: T) => W, deps: DependencyList, defaultValue?: W | null): [W | null, any, boolean, undefined];