import { Observable } from '@backstage/types';
import { DependencyList } from 'react';
/**
 * Subscribe to an observable and return the latest value from it.
 *
 * @remarks
 *
 * This implementation differs in a few important ways from the plain
 * useObservable from the react-use library. That hook does not support a
 * dependencies array, and also it only subscribes once to the initially passed
 * in observable and won't properly react when either initial value or the
 * actual observable changes.
 *
 * This hook will ensure to resubscribe and reconsider the initial value,
 * whenever the dependencies change.
 */
export declare function useUpdatingObservable<T>(value: T, observable: Observable<T> | undefined, deps: DependencyList): T;
