export interface Observable { subscribe: (listener: (value: T) => void) => { unsubscribe: () => void; }; } declare function useObservable(observable$: Observable): T | undefined; declare function useObservable(observable$: Observable, initialValue: T): T; export default useObservable;